From a25cd0e1e483f30386e3bb724ad3d89a66a2aa28 Mon Sep 17 00:00:00 2001 From: bitterpanda Date: Mon, 4 May 2026 14:24:09 +0800 Subject: [PATCH 1/2] Update workflow to allow immutable releases & create RELEASE.md --- .github/workflows/release.yml | 6 +++++- RELEASE.md | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 RELEASE.md diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 82feb8ac..bbb0d2b1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: 📦 Publish new Release on: release: - types: [published] + types: [created] permissions: contents: write @@ -73,3 +73,7 @@ jobs: asset_path: ./zen.tar.gz.sha256sum asset_name: zen.tar.gz.sha256sum asset_content_type: text/plain + - name: Publish release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh release edit ${{ github.event.release.tag_name }} --draft=false --repo ${{ github.repository }} diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 00000000..00660443 --- /dev/null +++ b/RELEASE.md @@ -0,0 +1,6 @@ +# Releasing + +1. Go to **GitHub → Releases → Draft a new release** +2. Choose a tag (e.g. `v1.2.3`) and set it as a **draft** +3. Click **Save draft** — this triggers the release workflow +4. The workflow builds the artifacts, uploads them to the draft, then publishes the release automatically From 9b557fc96a90de099a694867fa7eb9472b2065d5 Mon Sep 17 00:00:00 2001 From: bitterpanda Date: Mon, 4 May 2026 16:11:44 +0800 Subject: [PATCH 2/2] Apply suggestion from @bitterpanda63 --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bbb0d2b1..6467270c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ permissions: jobs: create-release-asset: - runs-on: ubuntu-latest + runs-on: open-source-releaser steps: - name: Check out code