-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
60 lines (51 loc) · 1.68 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
59
60
version: '{build}'
image: Visual Studio 2022
init:
- ps: |
If ($Env:APPVEYOR_REPO_TAG_NAME -match "-"){
Set-AppveyorBuildVariable -Name "IsPreRelease" -Value True
}
Else{
Set-AppveyorBuildVariable -Name "IsPreRelease" -Value False
}
build_script:
- build.cmd ci
test_script:
- build.cmd citest
artifacts:
- path: __package\*.nupkg
name: NuGet
- path: __package\*.snupkg
name: Symbols
- path: __package\*.zip
name: Zip
nuget:
disable_publish_on_pr: true
deploy:
- provider: GitHub
release: 'Release $(APPVEYOR_REPO_TAG_NAME) build $(APPVEYOR_BUILD_VERSION)'
tag: $(APPVEYOR_REPO_TAG_NAME)
description: '[**CHANGE LOG**](https://github.com/bchavez/Pinata.Client/blob/master/HISTORY.md)'
prerelease: $(IsPreRelease)
artifact: Zip, NuGet, Symbols
auth_token:
secure: cyivrWQwrZNAb6UCNXlIQlGfVSnKIC6TatUOIP95CQgMeKGnmBSqBgAFv2TsRZhR
on:
branch: master
appveyor_repo_tag_name: /v\d+\.\d+\.\d+/
appveyor_repo_tag: true
- provider: NuGet
server:
symbol_server:
skip_symbols: false
api_key:
secure: L7VOqYykduJEcH07x8bJkf5dNeSsAg5j0vwFTYUkUWqXUjpZNrbI2h1DhUSV1NBN
artifact: NuGet, Symbols
on:
branch: master
appveyor_repo_tag_name: /v\d+\.\d+\.\d+/
appveyor_repo_tag: true
on_failure:
- ps: |
# Enables RDP for debugging and setup some tools
# $blockRdp = $true; choco install notepad2; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))