Skip to content

Commit 2f1ff39

Browse files
authored
Merge pull request #18 from cryptape/fix/trusted-publishing-auth
fix(ci): add crates-io-auth-action for Trusted Publishing
2 parents 6c3bf1c + 8d78607 commit 2f1ff39

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ jobs:
88
publish:
99
name: Publish to crates.io
1010
runs-on: ubuntu-latest
11-
environment: crates.io
1211

1312
permissions:
1413
id-token: write
@@ -21,5 +20,9 @@ jobs:
2120
run: cargo test --verbose
2221
env:
2322
RUSTFLAGS: "-Dwarnings"
23+
- uses: rust-lang/crates-io-auth-action@v1
24+
id: auth
2425
- name: Publish
2526
run: cargo publish
27+
env:
28+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

AGENTS.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,11 @@ Follow [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) format:
164164
### Trusted Publisher Setup
165165

166166
Uses crates.io Trusted Publishers (no API token required). Configure the trusted
167-
publisher at https://crates.io/crates/fiber-sphinx/settings with:
168-
- Repository: `cryptape/fiber-sphinx`
169-
- Workflow: `deploy.yml`
170-
- Environment: `crates.io`
167+
publisher at https://crates.io/crates/fiber-sphinx/settings → Trusted Publishing:
168+
- Repository owner: `cryptape`
169+
- Repository name: `fiber-sphinx`
170+
- Workflow filename: `deploy.yml`
171+
- Environment: (leave empty)
171172

172173
## Contributing Workflow
173174

0 commit comments

Comments
 (0)