Automatically tag successful build

This commit is contained in:
Michael Ganss
2018-07-16 17:38:47 +02:00
parent ef3dd0dab7
commit fd667a2312

View File

@@ -2,6 +2,8 @@ version: 4.0.{build}
skip_tags: true skip_tags: true
image: Visual Studio 2017 image: Visual Studio 2017
environment: environment:
access_token:
secure: Eq6BjtZ80BXKLwFMg76IjuQAvbLjbojIF/X/ARouGVhxPneJtgDfCXMPNgJ7KBKq
CoverityProjectToken: CoverityProjectToken:
secure: pUUrynbyxCRpsAgGdKBVYDZCilwBmaWQ1Jg+rg5znr0= secure: pUUrynbyxCRpsAgGdKBVYDZCilwBmaWQ1Jg+rg5znr0=
CoverityNotificationEmail: CoverityNotificationEmail:
@@ -19,3 +21,10 @@ test_script:
- codecov -f "coverage.xml" - codecov -f "coverage.xml"
artifacts: artifacts:
- path: 'src\**\*.nupkg' - path: 'src\**\*.nupkg'
on_success:
- git config --global credential.helper store
- ps: Add-Content "$HOME\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n"
- git config --global user.email "michael@ganss.org"
- git config --global user.name "Michael Ganss"
- git tag v%APPVEYOR_BUILD_VERSION%
- git push origin --tags