feat: refine artifact upload logic for tag-only builds and improve error handling
CI / Windows x64 (push) Has been cancelled

This commit is contained in:
2026-08-02 18:25:56 +07:00
parent 27b78ae6be
commit d3d57e1e57
+6
View File
@@ -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.