Also do dev releases when merging into dev tag branch (#260)

This commit is contained in:
Till Schneidereit
2019-08-07 14:48:38 +02:00
committed by GitHub
parent f2a65f1f7a
commit 53fda72ce7

View File

@@ -240,7 +240,8 @@ jobs:
assets: '$(Build.ArtifactStagingDirectory)/**' assets: '$(Build.ArtifactStagingDirectory)/**'
isDraft: false isDraft: false
isPreRelease: true 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. # GitHub doesn't support doing rolling releases for branch.
# To simulate that for dev builds, always do a release for the "dev" tag. # To simulate that for dev builds, always do a release for the "dev" tag.
@@ -256,12 +257,12 @@ jobs:
tag: 'dev' tag: 'dev'
# This might fail in case the target repo doesn't yet have this tag, which is fine. # This might fail in case the target repo doesn't yet have this tag, which is fine.
continueOnError: true continueOnError: true
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master') condition: in(variables['Build.SourceBranch'], 'refs/heads/master', 'refs/tags/dev')
- script: | - script: |
git -c http.extraheader="AUTHORIZATION: basic ***" push origin :dev 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. # This might fail in case the target repo doesn't yet have this tag, which is fine.
continueOnError: true continueOnError: true
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master') condition: in(variables['Build.SourceBranch'], 'refs/heads/master', 'refs/tags/dev')
- task: GitHubRelease@0 - task: GitHubRelease@0
inputs: inputs:
gitHubConnection: 'tschneidereit-releases' gitHubConnection: 'tschneidereit-releases'
@@ -273,4 +274,4 @@ jobs:
assets: '$(Build.ArtifactStagingDirectory)/**' assets: '$(Build.ArtifactStagingDirectory)/**'
isDraft: false isDraft: false
isPreRelease: true isPreRelease: true
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master') condition: in(variables['Build.SourceBranch'], 'refs/heads/master', 'refs/tags/dev')