ci: fail loud on velopack errors, guard release assets
CI / release (push) Failing after 1m8s
CI / build-and-test (push) Successful in 1m42s

This commit is contained in:
fristy committed 2026-09-05 15:06:50 +03:00
1 parent 8d806d5bff
commit 01f3544f78
2 files changed
+8 -1

No files matched your search

+6 -1
View File
@@ -94,7 +94,12 @@ jobs:
shell: powershell
run: |
$ErrorActionPreference = "Stop"
& powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/release/package-velopack.ps1
& "$env:GITHUB_WORKSPACE/scripts/release/package-velopack.ps1"
if ($LASTEXITCODE -ne 0) { throw "package-velopack.ps1 failed ($LASTEXITCODE)" }
$out = Join-Path $env:GITHUB_WORKSPACE "artifacts/velopack/win-x64-stable"
foreach ($p in @("*.exe", "*.zip", "*.json", "*.nupkg")) {
if (@(Get-ChildItem -Path (Join-Path $out $p) -File -ErrorAction SilentlyContinue).Count -eq 0) { throw "Velopack output missing pattern $p in $out" }
}
- name: Create Gitea Release with assets
uses: akkuman/gitea-release-action@5a83c90484ef4355121df5eb60558c8ce66e81ac
with: