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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user