diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 961ce7061..429c9fbf2 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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 diff --git a/ci/deploy.sh b/ci/deploy.sh index 296d66f30..7a20d479d 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -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