forked from Lolle2000la/Image-Sort
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
46 lines (37 loc) · 1.24 KB
/
appveyor.yml
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
image: Visual Studio 2019
configuration: Release
platform: Any CPU
cache:
- 'C:\ProgramData\chocolatey\bin -> appveyor.yml'
- 'C:\ProgramData\chocolatey\lib -> appveyor.yml'
install:
- choco install gitversion.portable -pre -y
before_build:
- dotnet restore
- ps: gitversion /l console /output buildserver /updateAssemblyInfo
build:
project: Image-Sort.sln
parallel: true
verbosity: minimal
after_test:
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true") {
cd .\src\ImageSort.WindowsSetup\;
gitversion /updatewixversionfile | Out-String;
MSBuild /p:Configuration=Release /p:Platform=x64 /p:OutputPath=..\..\artifacts\x64 /p:BuildProjectReferences=false | Out-String;
MSBuild /p:Configuration=Release /p:Platform=x86 /p:OutputPath=..\..\artifacts\x86 /p:BuildProjectReferences=false | Out-String;
cd ..\..;
}
artifacts:
- path: '.\artifacts\**\*.msi'
name: Image Sort Installer
type: File
deploy:
- provider: GitHub
release: Image Sort v$(appveyor_build_version)
tag: $(APPVEYOR_REPO_TAG_NAME)
auth_token:
secure: Gka4zhwdCzAkR5hGyS988om/2MSNTP+BZDilT87BtI1jA7NYq9x0BB1cBUO3gPKa
artifact: Image Sort Installer
on:
APPVEYOR_REPO_TAG: true