From 6075e6f093e382be149d62f41a928ea40104b05c Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 2 May 2025 10:22:45 -0700 Subject: [PATCH 1/2] devops: trigger publish on new tag We still have a check that the job runs on a release-* branch, hopefully it passes. --- .azure-pipelines/publish.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.azure-pipelines/publish.yml b/.azure-pipelines/publish.yml index 09328911a..8b1060388 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 From 3a2fff2fe7d57453410c681d047f7c17aa3d6066 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 2 May 2025 10:29:52 -0700 Subject: [PATCH 2/2] match v1.* tags --- .azure-pipelines/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/publish.yml b/.azure-pipelines/publish.yml index 8b1060388..6bf18b243 100644 --- a/.azure-pipelines/publish.yml +++ b/.azure-pipelines/publish.yml @@ -37,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