-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathappveyor.yml
57 lines (45 loc) · 1.05 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
version: '{build}'
environment:
packageVersion: 0.0.1
init:
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_TAG_NAME.TrimStart("v"))"
}
else
{
Update-AppveyorBuild -Version "dev-$($env:APPVEYOR_REPO_COMMIT.Substring(0, 7))"
}
image: Visual Studio 2017
branches:
only:
- master
- develop
- feature/.*
- refs/pull/*/merge
- /v\d\.\d\.\d/
pull_requests:
do_not_increment_build_number: true
configuration: Release
nuget:
account_feed: false
project_feed: true
disable_publish_on_pr: true
build:
publish_nuget: true
build_script:
- ps: .\Build.ps1 -target Build -configuration Release
- ps: .\Build.ps1 -target Pack-Nuget -configuration Release
test_script:
- ps: .\build.ps1 -target Run-Unit-Tests -Configuration Release
artifacts:
- path: .\artifacts\**\*.nupkg
name: NuGet
deploy:
- provider: NuGet
name: production
api_key:
secure: '2K5EQwNNYpt5GMRVKxHTihZO2MZCUSbsngmYo63XPO73UoX0n7INS/4OGIrZ3mMe'
on:
appveyor_repo_tag: true