Skip to content

Commit

Permalink
really fix ' issue, schedule a nightly pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed Jun 23, 2019
1 parent fa10be3 commit 6999f15
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 6 deletions.
32 changes: 26 additions & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# vim:et:sw=2:ts=2:

trigger:
branches:
include: ['master']
Expand Down Expand Up @@ -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: $(wezterm.tagname)
assets: |
$(Build.SourcesDirectory)/*.zip
$(Build.SourcesDirectory)/*.deb
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: azure-test-$(wezterm.tagname)
tag: nightly-$(wezterm.tagname)
assets: |
$(Build.SourcesDirectory)/*.zip
$(Build.SourcesDirectory)/*.deb
title: "Azure test: $(wezterm.tagname)"
title: "Nightly Pre-Release: $(wezterm.tagname)"
assetUploadMode: replace
addChangeLog: false
isPreRelease: true
isDraft: true
isDraft: false
3 changes: 3 additions & 0 deletions ci/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6999f15

Please sign in to comment.