Skip to content

Commit 5bc1751

Browse files
committed
Trigger pipeline on new tags
1 parent b0ffb02 commit 5bc1751

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

azure-pipelines.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
trigger:
2+
branches:
3+
include:
4+
- '*'
5+
tags:
6+
include:
7+
- releases/*
8+
9+
110
jobs:
211
- job: Build
312
pool:
@@ -32,7 +41,7 @@ jobs:
3241
- job: Publish
3342
dependsOn:
3443
- Build
35-
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/')) # Only publish on tags
44+
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/releases/'))
3645
pool:
3746
vmImage: 'Ubuntu 16.04'
3847

0 commit comments

Comments
 (0)