From 86f692e28f17e50291e6db8fd1bbdbdd9e48830a Mon Sep 17 00:00:00 2001 From: Kevin Mehall Date: Sat, 4 Oct 2025 17:48:07 -0600 Subject: [PATCH] Add crates.io trusted publishing --- .github/workflows/release.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..db4164a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,17 @@ +name: Publish to crates.io +on: + push: + tags: ["v*"] +jobs: + publish: + runs-on: ubuntu-latest + environment: release + permissions: + id-token: write + steps: + - uses: actions/checkout@v5 + - uses: rust-lang/crates-io-auth-action@v1 + id: auth + - run: cargo publish + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}