diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b14861747..84c70c2d2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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