From 6b636167ef2e84c761777261ce1ca3087a75f765 Mon Sep 17 00:00:00 2001 From: Yip Coekjan <69834864+Coekjan@users.noreply.github.com> Date: Sat, 2 Nov 2024 04:04:04 +0800 Subject: [PATCH] Allow triggering the release workflow manually (#5349) --- .github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) 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