ci: capture mage stdout/stderr for the failing -Sign call
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -318,10 +318,12 @@ jobs:
|
||||
-Install true
|
||||
if ($LASTEXITCODE -ne 0) { throw "mage -New Deployment failed" }
|
||||
|
||||
& "$env:MAGE" -Sign "$publishDir/OutlookAddin.vsto" `
|
||||
Write-Host "-- mage -Sign deployment manifest --"
|
||||
$out = & "$env:MAGE" -Sign "$publishDir/OutlookAddin.vsto" `
|
||||
-CertFile $signPfx -Password $env:PFX_PWD `
|
||||
-TimeStampUri http://timestamp.digicert.com
|
||||
if ($LASTEXITCODE -ne 0) { throw "mage -Sign deployment manifest failed" }
|
||||
-TimeStampUri http://timestamp.digicert.com 2>&1
|
||||
$out | ForEach-Object { Write-Host "mage: $_" }
|
||||
if ($LASTEXITCODE -ne 0) { throw "mage -Sign deployment manifest failed (exit $LASTEXITCODE)" }
|
||||
Remove-Item -Force $signPfx
|
||||
|
||||
Get-ChildItem -Recurse -File "$appFilesDir" |
|
||||
|
||||
Reference in New Issue
Block a user