-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Create appveyor.yml * Setup deploys to nuget.org feed, github release; use gitversion output to proper tag appvoyer build, github release, github tag
- Loading branch information
1 parent
e1427b7
commit 37ad72a
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
version: '{build}' | ||
pull_requests: | ||
do_not_increment_build_number: true | ||
branches: | ||
only: | ||
- master | ||
- develop | ||
skip_tags: true | ||
environment: | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
VERSION_INFO_SEMVER: null | ||
VERSION_INFO: null | ||
install: | ||
- ps: >- | ||
$version_info = (gitversion /output json | ConvertFrom-Json) | ||
$env:VERSION_INFO = $version_info | ||
$env:VERSION_INFO_SEMVER = $version_info.SemVer | ||
Update-AppveyorBuild -Version "$env:VERSION_INFO_SEMVER-$env:APPVEYOR_BUILD_NUMBER" | ||
Write-Host "Set VERSION_INFO_SEMVER = " $env:VERSION_INFO_SEMVER | ||
Write-Host "Set APPVEYOR_BUILD_VERSION = " $env:APPVEYOR_BUILD_VERSION | ||
nuget: | ||
project_feed: true | ||
disable_publish_on_pr: true | ||
build_script: | ||
- ps: .\build.ps1 | ||
test: off | ||
artifacts: | ||
- path: .\artifacts\*.nupkg | ||
name: NuGet | ||
- path: .\test-results\*.xml | ||
name: Xunit | ||
|
||
deploy: | ||
- provider: GitHub | ||
tag: ${VERSION_INFO_SEMVER} | ||
release: v${VERSION_INFO_SEMVER} | ||
auth_token: | ||
secure: xB9HMo4bYJ5YAcDMG/vm019T6A6BrWvq0W538SZ7KD4M+VTwYKKYF+QSnQw1AIg4 | ||
artifact: nothing | ||
draft: true | ||
on: | ||
branch: master | ||
- provider: NuGet | ||
api_key: | ||
secure: IfXB68vXuUlPe+R9b6siviwC8H4UlhCAAHD8UR4JjUVur8melAN/AHwxttr2Ct9N0DV0My65NQdxa6iwm1MoYlw6qMi60oi+wbTIdhAChT4= | ||
skip_symbols: true | ||
artifact: NuGet | ||
on: | ||
branch: master |