feat: refine artifact upload logic for tag-only builds and improve error handling
CI / Windows x64 (push) Has been cancelled
CI / Windows x64 (push) Has been cancelled
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user