From 53fda72ce7c865d9caeae566a0136976fd4aa3da Mon Sep 17 00:00:00 2001 From: Till Schneidereit Date: Wed, 7 Aug 2019 14:48:38 +0200 Subject: [PATCH] Also do dev releases when merging into dev tag branch (#260) --- .azure-pipelines.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 554a32695a..f7f04864db 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -240,7 +240,8 @@ jobs: assets: '$(Build.ArtifactStagingDirectory)/**' isDraft: false isPreRelease: true - condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/') + condition: and(startsWith(variables['Build.SourceBranch'], 'refs/tags/'), + ne(variables['Build.SourceBranch'], 'refs/tags/dev')) # GitHub doesn't support doing rolling releases for branch. # To simulate that for dev builds, always do a release for the "dev" tag. @@ -256,12 +257,12 @@ jobs: tag: 'dev' # This might fail in case the target repo doesn't yet have this tag, which is fine. continueOnError: true - condition: eq(variables['Build.SourceBranch'], 'refs/heads/master') + condition: in(variables['Build.SourceBranch'], 'refs/heads/master', 'refs/tags/dev') - script: | git -c http.extraheader="AUTHORIZATION: basic ***" push origin :dev # This might fail in case the target repo doesn't yet have this tag, which is fine. continueOnError: true - condition: eq(variables['Build.SourceBranch'], 'refs/heads/master') + condition: in(variables['Build.SourceBranch'], 'refs/heads/master', 'refs/tags/dev') - task: GitHubRelease@0 inputs: gitHubConnection: 'tschneidereit-releases' @@ -273,4 +274,4 @@ jobs: assets: '$(Build.ArtifactStagingDirectory)/**' isDraft: false isPreRelease: true - condition: eq(variables['Build.SourceBranch'], 'refs/heads/master') + condition: in(variables['Build.SourceBranch'], 'refs/heads/master', 'refs/tags/dev')