File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -16,19 +16,13 @@ jobs:
1616 build-and-push-rust :
1717 permissions :
1818 contents : write
19+ id-token : write # required for crates.io publish
1920 runs-on : ubuntu-24.04
2021 timeout-minutes : 10
2122 steps :
22- - name : Load secrets
23- id : op-load-secret
24- uses : 1password/load-secrets-action@13f58eec611f8e5db52ec16247f58c508398f3e6 # v3.0.0
25- with :
26- export-env : false
27- env :
28- OP_SERVICE_ACCOUNT_TOKEN : ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN_PUBLIC }}
29- CARGO_REGISTRY_TOKEN : " op://${{ vars.OP_VAULT_ACTIONS_PUBLIC }}/CARGO_REGISTRY_TOKEN/credential"
30-
3123 - uses : Cysharp/Actions/.github/actions/checkout@main
24+ - uses : rust-lang/crates-io-auth-action@b7e9a28eded4986ec6b1fa40eeee8f8f165559ec # v1.0.3
25+ id : auth
3226 - run : cargo build --verbose
3327 - run : cargo test update_package_version -- ${{ inputs.tag }} --nocapture
3428 - run : |
3731 git commit -m "Update cargo.toml version to ${{ inputs.tag }}" -a
3832 - run : cargo publish --manifest-path csbindgen/Cargo.toml
3933 env :
40- CARGO_REGISTRY_TOKEN : ${{ steps.op-load-secret .outputs.CARGO_REGISTRY_TOKEN }}
34+ CARGO_REGISTRY_TOKEN : ${{ steps.auth .outputs.token }}
4135 - run : git tag ${{ inputs.tag }}
4236 - name : Push changes
4337 uses : ad-m/github-push-action@77c5b412c50b723d2a4fbc6d71fb5723bcd439aa
You can’t perform that action at this time.
0 commit comments