Skip to content

Commit 8db1caa

Browse files
ci: auto-create GitHub Release on tag push
The publish workflow already publishes to crates.io on tag push but didn't create a GitHub Release, so prior releases were created by hand. Add a `gh release create --generate-notes` step (and bump permissions.contents to `write`) so future tags get a Release page automatically with auto-generated notes — editable after the fact if something more curated is wanted. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 260e48a commit 8db1caa

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
environment: crates-io
1414
permissions:
1515
id-token: write
16-
contents: read
16+
contents: write
1717
steps:
1818
- uses: actions/checkout@v4
1919
- uses: dtolnay/rust-toolchain@stable
@@ -24,3 +24,11 @@ jobs:
2424
- run: cargo publish
2525
env:
2626
CARGO_REGISTRY_TOKEN: ${{ steps.crates-io-auth.outputs.token }}
27+
- name: Create GitHub Release
28+
env:
29+
GH_TOKEN: ${{ github.token }}
30+
run: |
31+
tag="${GITHUB_REF#refs/tags/}"
32+
gh release create "$tag" \
33+
--title "$tag" \
34+
--generate-notes

0 commit comments

Comments
 (0)