File tree Expand file tree Collapse file tree 1 file changed +9
-16
lines changed Expand file tree Collapse file tree 1 file changed +9
-16
lines changed Original file line number Diff line number Diff line change 55 types : published
66 workflow_dispatch :
77
8- permissions :
9- id-token : write # Required for GitHub to authenticate with crates.io
10- contents : read
11-
128jobs :
139 publish :
14- name : Publish all crates in workspace
1510 runs-on : ubuntu-latest
16-
11+ environment : release # Optional: for enhanced security
12+ permissions :
13+ id-token : write # Required for OIDC token exchange
1714 steps :
18- - name : Checkout repository
19- uses : actions/checkout@v4
20-
21- - name : Set up Rust
22- 23-
24- - name : Publish Workspace
25- uses : crates-io/action@v1
26- with :
27- publish : true
15+ - uses : actions/checkout@v4
16+ - uses : rust-lang/crates-io-auth-action@v1
17+ id : auth
18+ - run : cargo publish
19+ env :
20+ CARGO_REGISTRY_TOKEN : ${{ steps.auth.outputs.token }}
You can’t perform that action at this time.
0 commit comments