Allow triggering the release workflow manually (#5349)

This commit is contained in:
Yip Coekjan 2024-11-02 04:04:04 +08:00 committed by GitHub
parent fac7583745
commit 6b636167ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,6 +3,7 @@
name: Build Release Binaries name: Build Release Binaries
on: on:
workflow_dispatch:
release: release:
types: [published] types: [published]
@ -71,7 +72,15 @@ jobs:
tar cJf $directory.tar.xz $directory tar cJf $directory.tar.xz $directory
fi fi
- uses: actions/upload-artifact@v4
if: github.event_name == 'workflow_dispatch'
with:
name: typst-${{ matrix.target }}
path: "typst-${{ matrix.target }}.*"
retention-days: 3
- uses: ncipollo/release-action@v1.14.0 - uses: ncipollo/release-action@v1.14.0
if: github.event_name == 'release'
with: with:
artifacts: "typst-${{ matrix.target }}.*" artifacts: "typst-${{ matrix.target }}.*"
allowUpdates: true allowUpdates: true