adjust how the tag name is set for the packager

This commit is contained in:
Wez Furlong committed 2019-06-23 07:53:11 -07:00
1 parent 0c86c2d23a
commit c2a4ea163d
2 files changed
+5 -12

No files matched your search

+2 -12
View File
@@ -111,16 +111,6 @@ jobs:
steps:
- checkout: self
submodules: true
- script: |
DATE="$(date +%Y%m%d-%H%M%S)"
echo "##vso[task.setvariable variable=build.date]$DATE"
displayName: "Create date variable"
- script: |
MY_TAG="$(Build.SourceBranch)"
MY_TAG=${MY_TAG#refs/tags/}
echo $MY_TAG
echo "##vso[task.setvariable variable=build.my_tag]$MY_TAG"
displayName: "Create my tag variable"
- script: |
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUSTUP_TOOLCHAIN
echo "##vso[task.setvariable variable=PATH;]$HOME/.cargo/bin:$PATH"
@@ -156,11 +146,11 @@ jobs:
action: 'edit'
target: '$(build.sourceVersion)'
tagSource: 'manual'
tag: 'azure-test-$(build.my_tag)'
tag: 'azure-test-$(wezterm.tagname)'
assets: |
$(Build.SourcesDirectory)/*.zip
$(Build.SourcesDirectory)/*.deb
title: 'Azure test: $(build.my_tag) - $(build.date)'
title: 'Azure test: $(wezterm.tagname)'
assetUploadMode: 'replace'
addChangeLog: false
isPreRelease: true
+3
View File
@@ -17,6 +17,9 @@ fi
TAG_NAME=${TAG_NAME:-$(git describe --tags)}
TAG_NAME=${TAG_NAME:-$(date +'%Y%m%d-%H%M%S')-$(git log --format=%h -1)}
# Emit the tagname variable for azure to pick up
echo "##vso[task.setvariable variable=wezterm.tagname]$TAG_NAME"
HERE=$(pwd)
case $OSTYPE in