Skip to content

Commit f3b21d8

Browse files
committed
Trigger on tags, exclude master. Run release task if tag starting with 'v'
1 parent 0718463 commit f3b21d8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

azure-pipelines.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@ variables:
22
MYSQL_ROOT_PASSWORD: mysql_root_pwd
33
MYSQL_HOST: '127.0.0.1'
44
MYSQL_PORT: '3306'
5+
56
trigger:
7+
branches:
8+
exclude:
9+
- master
10+
tags:
11+
include:
12+
- '*'
613
paths:
714
exclude:
815
- '*.md'
@@ -49,7 +56,7 @@ stages:
4956
goals: 'package'
5057
- task: GithubRelease@0
5158
displayName: ‘Create GitHub Release’
52-
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/v')
59+
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
5360
inputs:
5461
githubConnection: KarlConnection
5562
repositoryName: DiamondLightSource/gda-ispyb-api

0 commit comments

Comments
 (0)