Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 824d7fc

Browse files
committed
ci: update deploy trigger
1 parent 4428ba0 commit 824d7fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ trigger:
77
branches:
88
include:
99
- main
10+
- refs/tags/v*
1011
pr: none
1112

1213
pool:
@@ -240,7 +241,7 @@ stages:
240241
targetPath: $(Build.ArtifactStagingDirectory)/Nugets
241242

242243
- stage: deploy
243-
condition: and(contains(variables['build.sourceBranch'], 'refs/heads/main'), succeeded())
244+
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
244245
dependsOn: build
245246
jobs:
246247
- deployment: deploy_cli_core

0 commit comments

Comments
 (0)