ci: fail loud on velopack errors, guard release assets
This commit is contained in:
2 files changed
+8
-1
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user