Skip to content

Commit

Permalink
#7 Added Appveyor CI configuration (#24)
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
zabrowarnyrafal committed Feb 11, 2018
1 parent e1427b7 commit 37ad72a
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions appveyor.yml
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

0 comments on commit 37ad72a

Please sign in to comment.