Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit fc0287f

Browse files
committed
Real-sign tags
1 parent d360641 commit fc0287f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

azure-pipelines.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ pool:
3232
variables:
3333
# MicroBuild requires TeamName to be set.
3434
TeamName: C++ Cross Platform and Cloud
35-
# If the user didn't override the signing type, then only real-sign on master
36-
# or dev.
35+
# If the user didn't override the signing type, then only real-sign on tags,
36+
# master, or dev.
3737
${{ if ne(parameters.SignTypeOverride, 'default') }}:
3838
SignType: ${{ parameters.SignTypeOverride }}
39-
${{ if and(eq(parameters.SignTypeOverride, 'default'), or(eq(variables['Build.SourceBranchName'], 'master'), eq(variables['Build.SourceBranchName'], 'dev'))) }}:
39+
${{ if and(eq(parameters.SignTypeOverride, 'default'), or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), eq(variables['Build.SourceBranchName'], 'master'), eq(variables['Build.SourceBranchName'], 'dev'))) }}:
4040
SignType: real
41-
${{ if and(eq(parameters.SignTypeOverride, 'default'), not(or(eq(variables['Build.SourceBranchName'], 'master'), eq(variables['Build.SourceBranchName'], 'dev')))) }}:
41+
${{ if and(eq(parameters.SignTypeOverride, 'default'), not(or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), eq(variables['Build.SourceBranchName'], 'master'), eq(variables['Build.SourceBranchName'], 'dev')))) }}:
4242
SignType: test
4343

4444
steps:

0 commit comments

Comments
 (0)