From fddb146d731cd3c1a11260bc715ad20eaf7a2d46 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 2 May 2025 10:55:07 -0700 Subject: [PATCH] devops: trigger publish on new tag (#1787) --- .azure-pipelines/publish.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.azure-pipelines/publish.yml b/.azure-pipelines/publish.yml index 09328911..6bf18b24 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