diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 82feb8ac..6467270c 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 @@ -11,7 +11,7 @@ permissions: jobs: create-release-asset: - runs-on: ubuntu-latest + runs-on: open-source-releaser steps: - name: Check out code @@ -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