-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
37 lines (31 loc) · 1.21 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
version: 1.0.{build}
image: Visual Studio 2017
configuration: Release
platform: Any CPU
environment:
APP_TYPE: exe
APP_NAME: $(APPVEYOR_PROJECT_NAME)
APP_BIN: $(APP_NAME).$(APP_TYPE)
before_build:
- ps: nuget restore
- ps: mkdir $ENV:APP_NAME/lib
- ps: Start-FileDownload 'https://github.com/cern-winagent/settings/releases/latest/download/settings.dll' -FileName $ENV:APP_NAME/lib/settings.dll
- ps: Start-FileDownload 'https://github.com/cern-winagent/exceptionhandling/releases/latest/download/exceptionhandling.dll' -FileName $ENV:APP_NAME/lib/exceptionhandling.dll
build_script:
- ps: msbuild /p:VersionAssembly=$ENV:APPVEYOR_REPO_TAG_NAME /p:Configuration=Release $ENV:APP_NAME.sln
after_build:
- ps: (Get-FileHash $ENV:APP_NAME/bin/Release/$ENV:APP_BIN -Algorithm SHA1).Hash > $ENV:APP_NAME/bin/Release/$ENV:APP_BIN.sha1
artifacts:
- path: $(APP_NAME)/bin/Release/$(APP_BIN)
name: $(APP_BIN)
- path: $(APP_NAME)/bin/Release/$(APP_BIN).sha1
name: $(APP_BIN).sha1
deploy:
- provider: GitHub
auth_token:
secure: I9yNz4hsZBa4a7xxyISIQOV6xo/Ol3sWtsIXcPhACKe288D0tuyHZ3J6GwFuSBi2
repository: cern-winagent/$(APP_NAME)
artifact: $(APP_BIN), $(APP_BIN).sha1
force_update: true
on:
APPVEYOR_REPO_TAG: true