From d3d57e1e5775f837b79cb3dc155f85a7bd4c8d4b Mon Sep 17 00:00:00 2001 From: robonen Date: Sun, 2 Aug 2026 18:25:56 +0700 Subject: [PATCH] feat: refine artifact upload logic for tag-only builds and improve error handling --- .gitea/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 93bc586..0737b8f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -107,11 +107,17 @@ jobs: installer/setup.iss ls -la dist + # Tags only: branch and pull request runs are there to prove the build + # still works, and keeping an installer from each of them is just clutter. # v3 rather than v4: not every Gitea version accepts v4 artifacts. - uses: actions/upload-artifact@v3 + if: startsWith(github.ref, 'refs/tags/v') with: name: syshelper-${{ steps.meta.outputs.version }}-windows-x64 path: dist/*.exe + # Fail loudly rather than store an empty artifact if the installer + # was somehow not produced. + if-no-files-found: error # Releases go through the Gitea API directly: it is GitHub-compatible in # shape, but a self-hosted instance may not have ready-made actions.