Skip to content

Commit

Permalink
Trigger on tags, exclude master. Run release task if tag starting wit…
Browse files Browse the repository at this point in the history
…h 'v'
  • Loading branch information
KarlLevik committed Aug 10, 2021
1 parent 0718463 commit f3b21d8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ variables:
MYSQL_ROOT_PASSWORD: mysql_root_pwd
MYSQL_HOST: '127.0.0.1'
MYSQL_PORT: '3306'

trigger:
branches:
exclude:
- master
tags:
include:
- '*'
paths:
exclude:
- '*.md'
Expand Down Expand Up @@ -49,7 +56,7 @@ stages:
goals: 'package'
- task: GithubRelease@0
displayName: ‘Create GitHub Release’
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/v')
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
inputs:
githubConnection: KarlConnection
repositoryName: DiamondLightSource/gda-ispyb-api

0 comments on commit f3b21d8

Please sign in to comment.