-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathappveyor.yml
More file actions
53 lines (43 loc) · 1.43 KB
/
appveyor.yml
File metadata and controls
53 lines (43 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
configuration: Release
# Don't build unless it's tagged
# skip_non_tags: true
image:
- Visual Studio 2017
cache:
- packages -> **\packages.config
# Get the version from the tag name (strips v from the start)
init:
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
Update-AppveyorBuild -Version $env:APPVEYOR_REPO_TAG_NAME
}
# Patch the Assembly Info file to have the version based on the tag name
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
before_build:
- git submodule update --init --recursive --remote
- nuget restore "Concept Matrix.sln"
- nuget restore lib/SaintCoinach/SaintCoinach.sln
build:
project: Concept Matrix.sln
after_build:
7z a CMTool.zip %APPVEYOR_BUILD_FOLDER%\ConceptMatrix\bin\%CONFIGURATION%\*.exe %APPVEYOR_BUILD_FOLDER%\ConceptMatrix\bin\%CONFIGURATION%\*.txt %APPVEYOR_BUILD_FOLDER%\ConceptMatrix\bin\%CONFIGURATION%\OffsetSettings.xml %APPVEYOR_BUILD_FOLDER%\ConceptMatrix\bin\%CONFIGURATION%\Definitions\
artifacts:
- path: CMTool.zip
name: CMTool
deploy:
tag: $(appveyor_repo_tag_name)
release: Concept Matrix $(appveyor_repo_tag_name)
provider: GitHub
draft: true
auth_token:
secure: O6Rsj+hoS5X7Q1u7TjtFwjRN53ohwjF8Mik/BpVidoefAag5FfpxoWqS5GTdJECG
artifact: CMTool.zip
on:
branch: master
appveyor_repo_tag: true