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
on:
workflow_dispatch:
release:
types: [published]
@ -71,7 +72,15 @@ jobs:
tar cJf $directory.tar.xz $directory
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
if: github.event_name == 'release'
with:
artifacts: "typst-${{ matrix.target }}.*"
allowUpdates: true