Skip to content

Commit 19d7528

Browse files
author
Michael Ganss
committed
Create tag on successful build
1 parent 2ff4b0b commit 19d7528

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

appveyor.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
version: 2.0.{build}
22
skip_tags: true
33
image: Visual Studio 2017 Preview
4+
environment:
5+
access_token:
6+
secure: Eq6BjtZ80BXKLwFMg76IjuQAvbLjbojIF/X/ARouGVhxPneJtgDfCXMPNgJ7KBKq
47
build_script:
58
- ps: (Get-Content XmlSchemaClassGenerator\XmlSchemaClassGenerator.csproj).Replace("1.0.0-VERSION", $env:APPVEYOR_BUILD_VERSION) | Set-Content XmlSchemaClassGenerator\XmlSchemaClassGenerator.csproj
69
- ps: (Get-Content XmlSchemaClassGenerator.Console\XmlSchemaClassGenerator.Console.csproj).Replace("1.0.0-VERSION", $env:APPVEYOR_BUILD_VERSION) | Set-Content XmlSchemaClassGenerator.Console\XmlSchemaClassGenerator.Console.csproj
@@ -25,3 +28,10 @@ artifacts:
2528
- path: 'XmlSchemaClassGenerator.Console\**\*.nupkg'
2629
- path: 'xscgen\**\*.nupkg'
2730
- path: XmlSchemaClassGenerator.%APPVEYOR_BUILD_VERSION%.zip
31+
on_success:
32+
- git config --global credential.helper store
33+
- ps: Add-Content "$HOME\.git-credentials" "https://$($env:access_token):[email protected]`n"
34+
- git config --global user.email "[email protected]"
35+
- git config --global user.name "Michael Ganss"
36+
- git tag v%APPVEYOR_BUILD_VERSION%
37+
- git push origin --tags

0 commit comments

Comments
 (0)