Skip to content

Commit e001673

Browse files
Simplify publish workflow: trigger on tag push, drop unused OIDC
crates.io does not support OIDC trusted publishing. Use CARGO_REGISTRY_TOKEN secret and trigger on v* tag pushes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent cb4760f commit e001673

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
name: Publish to crates.io
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
tags: ["v*"]
66

77
env:
88
CARGO_TERM_COLOR: always
99

1010
jobs:
1111
publish:
1212
runs-on: ubuntu-latest
13-
environment: crates-io
14-
permissions:
15-
id-token: write
16-
contents: read
1713
steps:
1814
- uses: actions/checkout@v4
1915
- uses: dtolnay/rust-toolchain@stable

0 commit comments

Comments
 (0)