Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .azure-pipelines/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
trigger: none
pr: none

trigger:
tags:
include:
- '*'

resources:
repositories:
- repository: 1esPipelines
Expand Down Expand Up @@ -33,8 +37,8 @@ extends:
artifact: esrp-build
steps:
- bash: |
if [[ ! "$CURRENT_BRANCH" =~ ^release-.* ]]; then
echo "Can only publish from a release branch."
if [[ ! "$CURRENT_BRANCH" =~ ^v1\\..* ]]; then
echo "Can only publish from a release tag branch (v1.*)."
echo "Unexpected branch name: $CURRENT_BRANCH"
exit 1
fi
Expand Down
Loading