-
Notifications
You must be signed in to change notification settings - Fork 7
/
appveyor.yml
92 lines (83 loc) · 2.16 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: '{build}'
pull_requests:
do_not_increment_build_number: true
branches:
only:
- master
- develop
- /release\/*/
- /hotfix\/*/
skip_tags: true
shallow_clone: false
environment:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
VERSION_INFO_SEMVER: null
VERSION_INFO: null
VERSION_INFO_NUGET: null
nuget:
project_feed: true
disable_publish_on_pr: true
init:
before_build:
- ps: >-
$version_info_json = (gitversion /l console /output json);
$version_info = (gitversion /output json | ConvertFrom-Json);
$env:VERSION_INFO = $version_info;
$env:VERSION_INFO_SEMVER = $version_info.SemVer;
$env:VERSION_INFO_NUGET = $version_info.NuGetVersion
Update-AppveyorBuild -Version "$env:VERSION_INFO_SEMVER-$env:APPVEYOR_BUILD_NUMBER";
Write-Host "Get GitVersion output = " $version_info_json;
Write-Host "Set VERSION_INFO_SEMVER = " $env:VERSION_INFO_SEMVER;
Write-Host "Set APPVEYOR_BUILD_VERSION = " $env:APPVEYOR_BUILD_VERSION;
build_script:
- ps: .\build.ps1
test: off
artifacts:
- path: .\artifacts\*.nupkg
name: NuGet
- path: .\test-results\*.xml
name: Xunit
deploy:
- provider: GitHub
tag: ${VERSION_INFO_SEMVER}
release: v${VERSION_INFO_SEMVER}
auth_token:
secure: JGXCP5ogwbyjc0iZqs8i6O/Znx87GbpVFF/Om9OAW9/6fNpygIspgaUDtnAWx1jD
artifact: nothing
draft: true
on:
branch: master
- provider: NuGet
api_key:
secure: p3Sk0hJZF4uia94ka0L+0VY4VXB2CP188Rq0kky1/ZHvaHacb4LaXxEG7crELBxe
skip_symbols: true
artifact: NuGet
on:
branch: master
- provider: BinTray
username: zabrowarnyrafal
api_key:
secure: XjrCjUTd9QwNy4cUUMuFkzKj9yjWIqBc7ry9Qbqosi7y8OY4NogNFGaog6dIj98D
subject: skyrise
repo: Postgres2Go
package: Postgres2Go
version: ${VERSION_INFO_NUGET}
artifact: NuGet
publish: true
override: true
on:
branch: /hotfix\/*/
- provider: BinTray
username: zabrowarnyrafal
api_key:
secure: XjrCjUTd9QwNy4cUUMuFkzKj9yjWIqBc7ry9Qbqosi7y8OY4NogNFGaog6dIj98D
subject: skyrise
repo: Postgres2Go
package: Postgres2Go
version: ${VERSION_INFO_NUGET}
artifact: NuGet
publish: true
override: true
on:
branch: /release\/*/