Skip to content

Commit fddb146

Browse files
authored
devops: trigger publish on new tag (#1787)
1 parent 9ad596a commit fddb146

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.azure-pipelines/publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
trigger: none
21
pr: none
32

3+
trigger:
4+
tags:
5+
include:
6+
- '*'
7+
48
resources:
59
repositories:
610
- repository: 1esPipelines
@@ -33,8 +37,8 @@ extends:
3337
artifact: esrp-build
3438
steps:
3539
- bash: |
36-
if [[ ! "$CURRENT_BRANCH" =~ ^release-.* ]]; then
37-
echo "Can only publish from a release branch."
40+
if [[ ! "$CURRENT_BRANCH" =~ ^v1\\..* ]]; then
41+
echo "Can only publish from a release tag branch (v1.*)."
3842
echo "Unexpected branch name: $CURRENT_BRANCH"
3943
exit 1
4044
fi

0 commit comments

Comments
 (0)