ci: move tar into Upload step; explicit exit 0 from transcript step

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-11 17:12:41 +00:00
parent 50c3038188
commit 51f72c3a4a
+8 -6
View File
@@ -276,9 +276,7 @@ jobs:
Copy-Item -Force "tools/install-protocol.ps1" "$stagingDir/install-protocol.ps1"
Copy-Item -Force "tools/uninstall-protocol.ps1" "$stagingDir/uninstall-protocol.ps1"
Write-Host "=== STEP G: pack + upload publish.tar.gz ==="
tar -czf publish.tar.gz publish
$pair = "$($env:REG_USER):$($env:REG_PASS)"
Write-Host "=== publish-clickonce single step done; pack happens in Upload step ==="
} catch {
Write-Host "FATAL: $($_.Exception.Message)"
Write-Host $_.ScriptStackTrace
@@ -286,19 +284,23 @@ jobs:
} finally {
Stop-Transcript
}
if ($code -ne 0) { exit $code }
Write-Host "Single-step exit code: $code"
exit $code
- name: Upload publish.tar.gz to generic package
- name: Pack + upload publish.tar.gz
if: success()
shell: powershell
env:
REG_USER: ${{ secrets.REGISTRY_USER }}
REG_PASS: ${{ secrets.REGISTRY_PASSWORD }}
run: |
# Re-parse version inline (act_runner does not propagate steps.outputs).
$tag = "${{ github.ref_name }}"
if ($tag -notmatch '^v(\d+\.\d+\.\d+)$') { throw "tag $tag not in vMAJOR.MINOR.PATCH" }
$versionDot = $Matches[1]
& tar -czf publish.tar.gz publish
if ($LASTEXITCODE -ne 0) { throw "tar failed with $LASTEXITCODE" }
$pair = "$($env:REG_USER):$($env:REG_PASS)"
$auth = "Basic " + [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes($pair))
$uri = "https://gitea.dev.marcus-law.co.il/api/packages/espocrm-extensions/generic/outlook-addin-publish/$versionDot/publish.tar.gz"