Skip to content

Commit

Permalink
Merge pull request unoplatform#14897 from unoplatform/dev/jela/signin…
Browse files Browse the repository at this point in the history
…g-fail

ci: Fail signing step on signing failure
  • Loading branch information
jeromelaban authored Dec 21, 2023
2 parents 2f113c4 + f1ac880 commit eac2d16
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/sign-package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ $filesToSign = Get-ChildItem -Recurse $Env:ArtifactDirectory\* -Include *.nupkg
foreach ($fileToSign in $filesToSign) {
Write-Host "Submitting $fileToSign for signing"
.\SignClient 'sign' -c $appSettings -i $fileToSign -r $env:SignClientUser -s $env:SignClientSecret -n "$env:SignPackageName" -d "$env:SignPackageDescription" -u "$env:build_repository_uri"

if ($LASTEXITCODE -ne 0) {
Write-Error "Failed to sign $fileToSign"
exit $LASTEXITCODE
}

Write-Host "Finished signing $fileToSign"
}

Expand Down

0 comments on commit eac2d16

Please sign in to comment.