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.