forked from msgpack/msgpack-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor-release.yml
70 lines (59 loc) · 1.46 KB
/
appveyor-release.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
version: '{branch}-{build}'
image: Visual Studio 2017
branches:
only:
- master
- /[0-9]+\.[0-9]+(\.[xX])?/
configuration: Release
assembly_info:
patch: true
file: '**\*AssemblyInfo.cs'
assembly_version: $(AssemblyBaseVersion).0
assembly_file_version: $(AssemblyBaseVersion).{build}
assembly_informational_version: $(PackageVersion)
environment:
XamarinMSBuildExtensionsPath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild
install:
- cmd: >-
cd .\build
- ps: >-
./SetBuildEnv.ps1
cd ..
build_script:
- ps: >-
Write-Host "Configuration=${env:CONFIGURATION}"
cd ./build
./Build.ps1
if ( $LastExitCode -ne 0 )
{
Write-Error "Failed to build."
exit 1
}
appveyor PushArtifact "../dist/MsgPack.Cli.${env:PackageVersion}.nupkg"
if ( $LastExitCode -ne 0 )
{
Write-Error "Failed to publish nupkg."
exit 1
}
appveyor PushArtifact "../dist/MsgPack.Cli.${env:PackageVersion}.symbols.nupkg"
if ( $LastExitCode -ne 0 )
{
Write-Error "Failed to publish symbol nupkg."
exit 1
}
appveyor PushArtifact "../dist/MsgPack.Cli.${env:PackageVersion}.zip"
if ( $LastExitCode -ne 0 )
{
Write-Error "Failed to publish zip."
exit 1
}
cd ..
deploy:
- provider: Environment
name: msgpack-cli-nuget
on:
APPVEYOR_REPO_TAG: true
- provider: Environment
name: msgpack-cli-github
on:
APPVEYOR_REPO_TAG: true