This repository was archived by the owner on Mar 16, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
68 lines (53 loc) · 1.71 KB
/
Copy pathappveyor.yml
File metadata and controls
68 lines (53 loc) · 1.71 KB
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
branches:
only:
- master
version: '{build}'
assembly_info:
patch: true
file: '**\SharedAssemblyInfo.*'
assembly_version: "$(build_version)"
assembly_file_version: "$(build_version)"
assembly_informational_version: "$(release_version)"
configuration: Release
nuget:
account_feed: true
project_feed: true
disable_publish_on_pr: true
install:
- ps: |
$buildNumber = [int]$env:APPVEYOR_BUILD_NUMBER
$regex = [regex]'\[assembly: AssemblyInformationalVersion\(\"(?<version>.*?)\"\)\]'
$assemblyInfo = Get-Content .\SharedAssemblyInfo.cs
$env:BUILD_VERSION = $regex.Match($assemblyInfo).Groups['version'].Value
"Build version $env:BUILD_VERSION"
$env:RELEASE_VERSION = $env:BUILD_VERSION
if ($env:APPVEYOR_REPO_TAG -ne 'true') {
$env:RELEASE_VERSION += "-build" + $buildNumber.ToString().PadLeft(5, '0')
}
"Release version $env:RELEASE_VERSION"
build:
parallel: true
publish_nuget: true
publish_nuget_symbols: true
before_build:
- ps: nuget restore -source "https://www.nuget.org/api/v2/;https://www.myget.org/F/nancyfx/"
deploy:
- provider: NuGet
server: https://www.myget.org/F/13degrees/
api_key:
secure: 9ztVruXzf0tF7J1efrUsSE2yYqB7uALKcp49ccmLMD4UNqvs3wS99xtrwZEWzwNC
skip_symbols: true
on:
branch: master
- provider: NuGet
api_key:
secure: ZBeHIiaYTVSlf5BQun/d927bTowzj2DhntMQeTTbVAq2iV8RK/BNMDBUfwGZ7I7y
skip_symbols: false
on:
branch: master
appveyor_repo_tag: true
notifications:
- provider: Slack
auth_token:
secure: z7yNA5gLaQjKIWhrDw2b2j1tYJIEFPRtlfdVGPpV2U52q4ZvMdBrKosEGG587FMhybm8UfhoQeNZUUju1ExOtQ==
channel: '#opensource'