forked from StackExchange/StackExchange.Precompilation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
48 lines (45 loc) · 1.5 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
version: '{build}'
image: Visual Studio 2017
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: $(semver)
assembly_file_version: $(semver).{build}
assembly_informational_version: '{version}'
init:
- git config --global core.autocrlf input
install:
- ps: >-
set -name semver -scope global -value (get-content .\semver.txt)
$env:semver = $semver
if ("$env:appveyor_repo_tag_name" -ne "releases/$semver") {
$env:package_suffix = "-alpha$env:appveyor_build_number" }
update-appveyorbuild -Version "$env:semver$env:package_suffix"
nuget:
disable_publish_on_pr: true
build_script:
- ps: .\BuildAndPack.ps1 -VersionSuffix "$env:package_suffix" -GitCommitId "$env:appveyor_repo_commit" -MsBuildArgs @(, "/logger:C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll") -CIBuild
skip_branch_with_pr: true
skip_tags: false
skip_commits:
files:
- '**/*.md'
artifacts:
- path: packages/obj/*.nupkg
deploy:
- provider: NuGet
name: alpha
on:
branch: master
server: https://www.myget.org/F/stackoverflow/api/v2
api_key:
secure: P/UHxq2DEs0GI1SoDXDesHjRVsSVgdywz5vmsnhFQQY5aJgO3kP+QfhwfhXz19Rw
symbol_server: https://www.myget.org/F/stackoverflow/symbols/api/v2/package
- provider: NuGet
name: release
on:
appveyor_repo_tag: true
server: https://www.myget.org/F/stackoverflow/api/v2
api_key:
secure: P/UHxq2DEs0GI1SoDXDesHjRVsSVgdywz5vmsnhFQQY5aJgO3kP+QfhwfhXz19Rw
symbol_server: https://www.myget.org/F/stackoverflow/symbols/api/v2/package