@@ -4,6 +4,18 @@ on:
5 - '[0-9]+.[0-9]+'
5 - '[0-9]+.[0-9]+'
6 - '[0-9]+.[0-9]+.[0-9]+'
6 - '[0-9]+.[0-9]+.[0-9]+'
8+ - 'patch/ci-release-*'
11+ - '.github/workflows/release.yml'
14+ # Preview mode: Publishes the build output as a CI artifact instead of creating
15+ # a release, allowing for manual inspection of the output. This mode is
16+ # activated if the CI run was triggered by events other than pushed tags, or
17+ # if the repository is a fork.
18+ preview: ${{ !startsWith(github.ref, 'refs/tags/') || github.repository != 'helix-editor/helix' }}
9 fetch-grammars:
21 fetch-grammars:
@@ -268,9 +280,17 @@ jobs:
269 - name: Upload binaries to release
281 - name: Upload binaries to release
270 uses: svenstaro/upload-release-action@v2
282 uses: svenstaro/upload-release-action@v2
283+ if: env.preview == 'false'
272 repo_token: ${{ secrets.GITHUB_TOKEN }}
285 repo_token: ${{ secrets.GITHUB_TOKEN }}
273 file: dist/*
286 file: dist/*
274 file_glob: true
287 file_glob: true
275 tag: ${{ steps.tagname.outputs.val }}
288 tag: ${{ steps.tagname.outputs.val }}
276 overwrite: true
289 overwrite: true
291+ - name: Upload binaries as artifact
292+ uses: actions/upload-artifact@v2
293+ if: env.preview == 'true'