File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 88 publish :
99 name : Publish to crates.io
1010 runs-on : ubuntu-latest
11- environment : crates.io
1211
1312 permissions :
1413 id-token : write
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 }}
Original file line number Diff line number Diff line change @@ -164,10 +164,11 @@ Follow [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) format:
164164### Trusted Publisher Setup
165165
166166Uses 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
You can’t perform that action at this time.
0 commit comments