-
Notifications
You must be signed in to change notification settings - Fork 4
/
appveyor.yml
39 lines (39 loc) · 1.29 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
version: '{branch}-{build}'
branches:
only:
- master
- dev
nuget:
# Do not publish NuGet packages for pull requests
disable_publish_on_pr: true
environment:
# Set the DOTNET_SKIP_FIRST_TIME_EXPERIENCE environment variable to stop wasting time caching packages
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
# Disable sending usage data to Microsoft
DOTNET_CLI_TELEMETRY_OPTOUT: true
# Use init to set the version using the Directory.Build.props file, branch and build number
on_finish:
- ps: |
$versionPrefix = ([xml](Get-Content .\src\Directory.Build.props)).Project.PropertyGroup.VersionPrefix
Update-AppveyorBuild -Version "$versionPrefix-$env:APPVEYOR_REPO_BRANCH-$env:APPVEYOR_BUILD_NUMBER"
build_script:
- ps: .\build.ps1 -t AppVeyor --nugetPreReleaseTag="beta$env:APPVEYOR_BUILD_NUMBER"
test: off
artifacts:
# Store NuGet packages
- path: .\Output\Artifacts\NuGets\PreRelease\*.nupkg
name: NuGet-PreRelease
# Store NuGet packages
- path: .\Output\Artifacts\NuGets\Release\*.nupkg
name: NuGet-Release
deploy:
- provider: Environment
name: name-sdk-nuget-pre-release
on:
branch: master
appveyor_repo_tag: false
# Use the manual deployment in appveyor to release a stable nuget package.
# - provider: Environment
# name: name-sdk-nuget-release
# on:
# appveyor_repo_tag: true