diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c645412..ddfb292 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,12 +16,18 @@ jobs: name: 🚀 Publish to crates.io needs: test runs-on: ubuntu-latest + permissions: + id-token: write steps: - name: 🛠 Checkout uses: actions/checkout@v4 + - name: 🔐 Authenticate to crates.io + uses: rust-lang/crates-io-auth-action@v1 + id: auth + - name: 🚀 Publish Crate env: - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} run: | cargo publish