ci: add Velopack packaging script and release job
CI / build (push) Successful in 1m4s
CI / test (push) Successful in 40s
CI / release (push) Failing after 46s

- scripts/release/package-velopack.ps1: self-contained publish + vpk pack
- release job: runs package-velopack.ps1, uploads Setup.exe + Portable.zip
- Artifact names: RGBLedStripController-Setup-<tag>-win-x64, RGBLedStripController-Portable-<tag>-win-x64
This commit is contained in:
fristy committed 2026-09-05 02:12:09 +03:00
1 parent 283c2d744b
commit 9fbe46ca82
2 files changed
+101 -5

No files matched your search

+17 -5
View File
@@ -147,14 +147,26 @@ jobs:
- name: Restore tools
run: dotnet tool restore
- name: Publish (Release, self-contained, single file)
run: dotnet publish src/RgbLedStripController/RgbLedStripController.csproj -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true --configfile NuGet.Config
- name: Package with Velopack (Setup.exe + Portable.zip)
shell: pwsh
run: |
$ErrorActionPreference = "Stop"
& powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/release/package-velopack.ps1
- name: Upload release artifacts
- name: Upload Velopack artifacts (Setup.exe + Portable.zip)
uses: actions/upload-artifact@v4
with:
name: rgb-led-strip-controller-${{ gitea.ref_name || 'manual' }}-win-x64
name: RGBLedStripController-Setup-${{ gitea.ref_name || 'manual' }}-win-x64
path: |
artifacts/velopack/win-x64-stable/*.exe
artifacts/velopack/win-x64-stable/*.zip
if-no-files-found: error
- name: Upload portable exe (fallback)
uses: actions/upload-artifact@v4
with:
name: RGBLedStripController-Portable-${{ gitea.ref_name || 'manual' }}-win-x64
path: |
src/RgbLedStripController/bin/Release/net8.0-windows10.0.19041.0/win-x64/publish/RgbLedStripController.exe
src/RgbLedStripController/bin/Release/net8.0-windows10.0.19041.0/win-x64/publish/RgbLedStripController.pdb
if-no-files-found: error
if-no-files-found: error