From c14476bf53a3aae983a64ec9094ad9b02af9a656 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Wed, 5 Nov 2025 10:10:49 -0600 Subject: [PATCH] Update rust workflow to use trusted publishing --- .github/workflows/rust.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 74e094fd..e9fa6bf5 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -156,10 +156,14 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: rust-lang/crates-io-auth-action@v1 + if: env.RELEASE == 'true' + id: auth + - name: Publish to crates.io if: env.RELEASE == 'true' env: - CARGO_REGISTRY_TOKEN: ${{ secrets.cargo_registry_token }} + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} # See comment above for why `--allow-dirty` is used. run: | cp -r src rust_bindings/cpp