Skip to content

Commit

Permalink
Create tag on successful build
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ganss committed Jul 2, 2018
1 parent 2ff4b0b commit 19d7528
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
version: 2.0.{build}
skip_tags: true
image: Visual Studio 2017 Preview
environment:
access_token:
secure: Eq6BjtZ80BXKLwFMg76IjuQAvbLjbojIF/X/ARouGVhxPneJtgDfCXMPNgJ7KBKq
build_script:
- ps: (Get-Content XmlSchemaClassGenerator\XmlSchemaClassGenerator.csproj).Replace("1.0.0-VERSION", $env:APPVEYOR_BUILD_VERSION) | Set-Content XmlSchemaClassGenerator\XmlSchemaClassGenerator.csproj
- ps: (Get-Content XmlSchemaClassGenerator.Console\XmlSchemaClassGenerator.Console.csproj).Replace("1.0.0-VERSION", $env:APPVEYOR_BUILD_VERSION) | Set-Content XmlSchemaClassGenerator.Console\XmlSchemaClassGenerator.Console.csproj
Expand All @@ -25,3 +28,10 @@ artifacts:
- path: 'XmlSchemaClassGenerator.Console\**\*.nupkg'
- path: 'xscgen\**\*.nupkg'
- path: XmlSchemaClassGenerator.%APPVEYOR_BUILD_VERSION%.zip
on_success:
- git config --global credential.helper store
- ps: Add-Content "$HOME\.git-credentials" "https://$($env:access_token):[email protected]`n"
- git config --global user.email "[email protected]"
- git config --global user.name "Michael Ganss"
- git tag v%APPVEYOR_BUILD_VERSION%
- git push origin --tags

0 comments on commit 19d7528

Please sign in to comment.