diff --git a/.azure-pipelines/publish.yml b/.azure-pipelines/publish.yml index 09328911a..6bf18b243 100644 --- a/.azure-pipelines/publish.yml +++ b/.azure-pipelines/publish.yml @@ -1,6 +1,10 @@ -trigger: none pr: none +trigger: + tags: + include: + - '*' + resources: repositories: - repository: 1esPipelines @@ -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