|
4 | 4 | # This build can run for every commit, as by default it does no signing. |
5 | 5 | # When run manually, signing should be enabled. |
6 | 6 |
|
7 | | -name: $(Date:yyyyMMdd).$(Rev:r) |
| 7 | +name: $(Build.SourceBranchName)-$(Date:yyyyMMdd).$(Rev:r) |
8 | 8 |
|
9 | 9 | parameters: |
10 | 10 | - name: Sign |
@@ -197,6 +197,13 @@ stages: |
197 | 197 | AZURE_CLIENT_SECRET: $(TrustedSigningSecret) |
198 | 198 | AZURE_TENANT_ID: $(TrustedSigningTenantId) |
199 | 199 |
|
| 200 | + - ${{ if eq(parameters.Sign, 'true') }}: |
| 201 | + - powershell: Write-Host "##vso[build.addbuildtag]signed" |
| 202 | + displayName: 'Add signed build tag' |
| 203 | + - ${{ elseif eq(parameters.TestSign, 'true') }}: |
| 204 | + - powershell: Write-Host "##vso[build.addbuildtag]test-signed" |
| 205 | + displayName: 'Add test-signed build tag' |
| 206 | + |
200 | 207 | - publish: $(DIST_DIR) |
201 | 208 | artifact: dist |
202 | 209 | displayName: Publish distribution artifacts |
@@ -334,3 +341,10 @@ stages: |
334 | 341 | UPLOAD_KEYFILE: $(sshkey.secureFilePath) |
335 | 342 | ${{ if ne(parameters.Sign, 'true') }}: |
336 | 343 | NO_UPLOAD: 1 |
| 344 | +
|
| 345 | + - ${{ if eq(parameters.Sign, 'true') }}: |
| 346 | + - powershell: Write-Host "##vso[build.addbuildtag]published" |
| 347 | + displayName: 'Add published tag' |
| 348 | + - ${{ else }}: |
| 349 | + - powershell: Write-Host "##vso[build.addbuildtag]test-published" |
| 350 | + displayName: 'Add test-published tag' |
0 commit comments