-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
50 lines (41 loc) · 1.18 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
47
48
49
50
image: Visual Studio 2019
init:
# Set "build version number" to "short-commit-hash" or when tagged to "tag name" (Travis style)
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_TAG_NAME.TrimStart("v"))"
}
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
platform:
- Any CPU
configuration:
- Release
build:
parallel: true
project: lux.sln
before_build:
- nuget restore
artifacts:
- path: lux-v%APPVEYOR_BUILD_VERSION%.zip
name: build
after_build:
- 7z a lux-v%APPVEYOR_BUILD_VERSION%.zip %APPVEYOR_BUILD_FOLDER%\bin\%CONFIGURATION%\lux.exe %APPVEYOR_BUILD_FOLDER%\LICENSE %APPVEYOR_BUILD_FOLDER%\README.md
deploy:
- release: "v$(appveyor_build_version)"
tag: $(APPVEYOR_REPO_TAG_NAME)
force_update: true
provider: GitHub
auth_token:
secure: 17sEgxLhEIIRLDk1ooeHaWBT9fCpr6kyvmrSbvFOc9c6ZG/j+rJ3Glxpxz0yE/Iz
artifact: lux-v$(appveyor_build_version).zip
draft: false
prerelease: false
on:
branch: master
appveyor_repo_tag: true