Skip to content

Commit

Permalink
Correctly parse tags
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Dec 18, 2018
1 parent 4eb4a65 commit 4806c36
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions azure-pipelines-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,26 @@ steps:
timeoutInMinutes: 120
displayName: Build

- bash: |
BRANCH=$(Build.SourceBranch)
TAG=${BRANCH:10}
echo "##vso[task.setvariable variable=Name;isOutput=true]$TAG"
displayName: Get Tag Name
name: Tag
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')

- task: GithubRelease@0
displayName: Create GitHub Release
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
condition: startsWith(variables['Tag.Name'], 'v')
inputs:
gitHubConnection: GitHub Yue
repositoryName: yue/yode
action: create
action: Edit
tagSource: auto
tag: $(Release.Tag)
title: Yode $(Release.Tag)
tag: $(Tag.Name)
title: Yode $(Tag.name)
releaseNotes: (placeholder)
assets: 'out/Release/*.zip'
assetUploadMode: replace
isDraft: true
addChangelog: false

0 comments on commit 4806c36

Please sign in to comment.