Skip to content

Commit

Permalink
Tweak pipeline github tag and release [skipci]
Browse files Browse the repository at this point in the history
  • Loading branch information
CZEMacLeod committed Apr 15, 2021
1 parent 4e70727 commit ad9dc16
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,10 @@ steps:

- powershell: |
Write-Host "Tagging Build: $env:BuildNumber"
git tag $env:BuildNumber
git push origin $env:BuildNumber
$tag = "v" + $env:BuildNumber
git tag $tag
git push origin $tag
displayName: Tag build
env:
BuildNumber: $(Build.BuildNumber)
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
Expand Down

0 comments on commit ad9dc16

Please sign in to comment.