-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
58 lines (50 loc) · 2.43 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
51
52
53
54
55
56
57
58
# see http://www.appveyor.com/docs/appveyor-yml
##### ENABLE REMOVE RDP ACCESS #####
# https://www.appveyor.com/docs/how-to/rdp-to-build-worker/
#init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
#######################
#---------------------------------#
# build configuration #
#---------------------------------#
build_script:
- cmd: 'msbuild .\src\.build\lessio.msbuild /p:TheVersion="%APPVEYOR_BUILD_VERSION%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"'
#---------------------------------#
# tests configuration #
#---------------------------------#
environment:
LESSIO_TEST_FILES: '%APPVEYOR_BUILD_FOLDER%\src\LessIO.Tests\TestFiles\'
test:
assemblies:
- .\src\.deploy\LessIO.Tests.dll
artifacts:
- path: 'src\.deploy\nuget-package\*.nupkg'
- path: 'src\.deploy\*.zip'
- path: 'src\.deploy\LessIO.dll'
deploy:
- provider: GitHub # See https://www.appveyor.com/docs/deployment/github/
release: v$(APPVEYOR_BUILD_VERSION)
description: 'Appveyor deployed v$(APPVEYOR_BUILD_VERSION)'
auth_token:
secure: sHTJe3t1e84O4MP01W+PBfNt+9hQSAeH8y9KzceW471wltJZBEH3p+suOo1yQecv # encrypted token from https://github.com/settings/tokens
artifact: /(.*\.nupkg)|(.*\.zip)/ # upload NuGet & zip files to release assets
draft: false
prerelease: false
on:
branch: master # only deploy on master
appveyor_repo_tag: true # only deploy when there is a tag pushed
appveyor_repo_tag_name: publish # only deploy when tag == "publish"
- provider: NuGet # See https://www.appveyor.com/docs/deployment/nuget/
api_key:
# Expires 10/03/2022. Get it at https://www.nuget.org/account/apikeys and encrypt it at https://ci.appveyor.com/tools/encrypt
secure: nLwjXk7MTIUXEQWgOvFK4ovwmEafl2PwDFTki5xqQlzF5GzpCXQfe4F8CDj2/WeE
artifact: /.*\.nupkg/
on:
branch: master # only deploy on master
appveyor_repo_tag: true # only deploy when there is a tag pushed
appveyor_repo_tag_name: publish # only deploy when tag == "publish"
##### KEEP RDP ACCESS #####
# https://www.appveyor.com/docs/how-to/rdp-to-build-worker/
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
#######################