1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-20 03:09:06 +03:00

really fix ' issue, schedule a nightly pre-release

This commit is contained in:
Wez Furlong 2019-06-23 09:20:40 -07:00
parent fa10be37c6
commit 6999f15204
2 changed files with 29 additions and 6 deletions

View File

@ -1,3 +1,5 @@
# vim:et:sw=2:ts=2:
trigger:
branches:
include: ['master']
@ -142,23 +144,41 @@ jobs:
condition: ne( variables['Agent.OS'], 'Windows_NT' )
- script: cargo build --release --all
displayName: Build in release mode
- script: bash ci/deploy.sh
- bash: ci/deploy.sh
displayName: Packaging
- task: GithubRelease@0
condition: succeeded()
#condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
condition: and(succeeded(), ne(variables['BUILD_REASON'], 'Schedule'), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
displayName: Release from tag
inputs:
gitHubConnection: release
repositoryName: wez/wezterm
action: edit
target: $(build.sourceVersion)
tagSource: manual
tag: azure-test-$(wezterm.tagname)
tag: $(wezterm.tagname)
assets: |
$(Build.SourcesDirectory)/*.zip
$(Build.SourcesDirectory)/*.deb
title: "Azure test: $(wezterm.tagname)"
title: $(wezterm.tagname)
assetUploadMode: replace
addChangeLog: false
isPreRelease: false
isDraft: false
- task: GithubRelease@0
condition: and(succeeded(), eq(variables['BUILD_REASON'], 'Schedule'))
displayName: Release from nightly build
inputs:
gitHubConnection: release
repositoryName: wez/wezterm
action: edit
target: $(build.sourceVersion)
tagSource: manual
tag: nightly-$(wezterm.tagname)
assets: |
$(Build.SourcesDirectory)/*.zip
$(Build.SourcesDirectory)/*.deb
title: "Nightly Pre-Release: $(wezterm.tagname)"
assetUploadMode: replace
addChangeLog: false
isPreRelease: true
isDraft: true
isDraft: false

View File

@ -18,7 +18,10 @@ 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
# https://docs.microsoft.com/en-us/azure/devops/pipelines/troubleshooting?view=azure-devops#variables-having--single-quote-appended
set +x
echo "##vso[task.setvariable variable=wezterm.tagname]$TAG_NAME"
set -x
HERE=$(pwd)