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:
2026-05-11 16:52:14 +00:00
parent 191c12b0c9
commit d0455d9aaf
+5 -3
View File
@@ -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" |