-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
66 lines (58 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
61
62
63
64
65
66
# Great reference: http://www.appveyor.com/docs/appveyor-yml
version: 1.0.{build}
skip_tags: false
configuration: Release
init:
- ps: >-
$parsedReleaseBuildVersion = $env:APPVEYOR_REPO_TAG_NAME -Match "(\d+.\d+.\d+(.\d+)?)"
If($env:appveyor_repo_tag -AND $parsedReleaseBuildVersion) {
$env:BuildVersion = $matches[0]
$env:IsGithubRelease = $TRUE
}
else {
$env:BuildVersion = $env:appveyor_build_version
$env:IsGithubRelease = ""
}
Write-Host "Build Version: " $env:BuildVersion
Write-Host "appveyor_build_version Variable: " $env:appveyor_build_version
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: $(BuildVersion)
assembly_file_version: $(BuildVersion)
assembly_informational_version: $(BuildVersion)
nuget:
account_feed: true
project_feed: true
before_build:
- nuget restore TidyJson\TidyJson.sln
build:
project: TidyJson\TidyJson.sln
publish_nuget: true
publish_nuget_symbols: true
verbosity: minimal
before_package:
- ps: Invoke-Expression TidyJson\TidyJson\Chocolatey\PrePackage.ps1
- cpack TidyJson\TidyJson\Chocolatey\package.nuspec --version %BuildVersion%
artifacts:
- path: TidyJson\TidyJson\bin\$(configuration)
name: bin
- path: '*.nupkg'
name: ChocolateyPackage
deploy:
- provider: GitHub
auth_token:
secure: 6Kc++hw4gNF7gTXwA6MpETVE8+gaMWqaLplEo3i5nLBrpjRKH/QX+yzVf6y1XEjn
artifact:
prerelease: false
on:
branch: master
IsGithubRelease: true
- provider: NuGet
server: https://chocolatey.org/
api_key:
secure: 2Uqi8iUyKSHUakCSDeJb+qeXjn8i87F2U9RRmQIsqz4HOSycTjhat5AxHNs0yJ4g
artifact: ChocolateyPackage
on:
branch: master
IsGithubRelease: true