Skip to content

Commit 0c6154d

Browse files
Added appveyor
1 parent 32bcf23 commit 0c6154d

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,3 +350,5 @@ MigrationBackup/
350350

351351
# End of https://www.gitignore.io/api/csharp
352352

353+
FodyWeavers.xml
354+
FodyWeavers.xsd

appveyor.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
image: Visual Studio 2019
2+
3+
init:
4+
# Set "build version number" to "short-commit-hash" or when tagged to "tag name" (Travis style)
5+
- ps: >-
6+
if ($env:APPVEYOR_REPO_TAG -eq "true")
7+
{
8+
Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_TAG_NAME.TrimStart("v"))"
9+
}
10+
11+
assembly_info:
12+
patch: true
13+
file: AssemblyInfo.*
14+
assembly_version: '{version}'
15+
assembly_file_version: '{version}'
16+
assembly_informational_version: '{version}'
17+
18+
platform:
19+
- Any CPU
20+
21+
configuration:
22+
- Release
23+
24+
build:
25+
parallel: true
26+
project: lux.sln
27+
28+
before_build:
29+
- nuget restore
30+
31+
artifacts:
32+
- path: lux-v%APPVEYOR_BUILD_VERSION%.zip
33+
name: build
34+
35+
after_build:
36+
- 7z a lux-v%APPVEYOR_BUILD_VERSION%.zip %APPVEYOR_BUILD_FOLDER%\bin\%CONFIGURATION%\lux.exe %APPVEYOR_BUILD_FOLDER%\LICENSE %APPVEYOR_BUILD_FOLDER%\README.md
37+
38+
deploy:
39+
- release: "v$(appveyor_build_version)"
40+
tag: $(APPVEYOR_REPO_TAG_NAME)
41+
force_update: true
42+
provider: GitHub
43+
auth_token:
44+
secure: FsKnR43Zii08An/ZRYLWntg4qBSiLEqamIul0nAT4Qs3zdt3PwIAlKZhA/uFo2m6
45+
artifact: lux-v$(appveyor_build_version).zip
46+
draft: false
47+
prerelease: false
48+
on:
49+
branch: master
50+
appveyor_repo_tag: true

0 commit comments

Comments
 (0)