From 4353c67f95ba99bf2e4da281eaf7954cfd8ac3b2 Mon Sep 17 00:00:00 2001 From: fristyxd Date: Sat, 5 Sep 2026 03:28:32 +0300 Subject: [PATCH] ci: use gitea.com/actions/gitea-release-action for release assets with API_TOKEN --- .gitea/workflows/ci.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 8246060..3d96d4d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -153,11 +153,20 @@ jobs: $ErrorActionPreference = "Stop" & powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/release/package-velopack.ps1 - - name: Upload Velopack artifacts (Setup.exe + Portable.zip) - uses: actions/upload-artifact@v4 + - name: Create Gitea Release with assets + uses: gitea.com/actions/gitea-release-action@v1 with: - name: RGBLedStripController-Setup-${{ gitea.ref_name || 'manual' }}-win-x64 - path: | + token: ${{ secrets.API_TOKEN }} + tag_name: ${{ gitea.ref_name }} + repository: ${{ gitea.repository }} + files: | artifacts/velopack/win-x64-stable/*.exe artifacts/velopack/win-x64-stable/*.zip - if-no-files-found: error \ No newline at end of file + name: v${{ gitea.ref_name }} + body: | + Release ${{ gitea.ref_name }} + + - RGBLedStripController-Setup-${{ gitea.ref_name }}-x64.exe (Windows Installer) + - RGBLedStripController-Portable-${{ gitea.ref_name }}-x64.zip (Portable) + draft: false + prerelease: false \ No newline at end of file