File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 7
7
- onebranch
8
8
- release/v*
9
9
10
- schedules :
11
- - cron : ' 0 3 * * 1'
12
- displayName : Weekly Build
13
- branches :
14
- include :
15
- - main
16
- always : true
17
-
18
10
variables :
19
11
BuildConfiguration : ' release'
20
12
PackageRoot : ' $(System.ArtifactsDirectory)/Packages'
@@ -149,6 +141,14 @@ extends:
149
141
Copy-Item ./bin/*.msixbundle "$(ob_outputDirectory)"
150
142
displayName: 'Create msixbundle'
151
143
condition: succeeded()
144
+ - task : onebranch.pipeline.signing@1
145
+ displayName : Sign MsixBundle
146
+ condition : succeeded()
147
+ inputs :
148
+ command : ' sign'
149
+ signing_profile : $(MSIXProfile)
150
+ files_to_sign : ' *.msixbundle'
151
+ search_root : ' $(ob_outputDirectory)'
152
152
153
153
- job : BuildLinuxMusl
154
154
dependsOn : SetPackageVersion
Original file line number Diff line number Diff line change @@ -237,8 +237,9 @@ if (!$SkipBuild) {
237
237
Write-Host " Using CFS for cargo source replacement"
238
238
${env: CARGO_SOURCE_crates-io_REPLACE_WITH} = $null
239
239
$env: CARGO_REGISTRIES_CRATESIO_INDEX = $null
240
+ $env: CARGO_REGISTRIES_POWERSHELL_INDEX = " sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell~force-auth/Cargo/index/"
240
241
241
- if ($UseCFSAuth -or $null -ne $ env: TF_BUILD ) {
242
+ if ($UseCFSAuth ) {
242
243
if ($null -eq (Get-Command ' az' - ErrorAction Ignore)) {
243
244
throw " Azure CLI not found"
244
245
}
@@ -250,13 +251,12 @@ if (!$SkipBuild) {
250
251
Write-Warning " Failed to get access token, use 'az login' first, or use '-useCratesIO' to use crates.io. Proceeding with anonymous access."
251
252
} else {
252
253
$header = " Bearer $accessToken "
253
- $env: CARGO_REGISTRIES_POWERSHELL_INDEX = " sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell~force-auth/Cargo/index/"
254
254
$env: CARGO_REGISTRIES_POWERSHELL_TOKEN = $header
255
255
$env: CARGO_REGISTRIES_POWERSHELL_CREDENTIAL_PROVIDER = ' cargo:token'
256
256
}
257
257
}
258
258
else {
259
- Write-Warning " Azure CLI not found, proceeding with anonymous access."
259
+ Write-Warning " Azure CLI not found or running in ADO , proceeding with anonymous access."
260
260
}
261
261
}
262
262
}
You can’t perform that action at this time.
0 commit comments