From 583838703a34c6dc1d39ff27b7dbed817cbb906f Mon Sep 17 00:00:00 2001 From: Linwei Shang Date: Mon, 30 Mar 2026 09:59:42 -0400 Subject: [PATCH] feat: add trusted publishing workflow for crates.io Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/publish.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..70c2032 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,15 @@ +name: Publish to crates.io +on: + workflow_dispatch: +jobs: + publish-crate: + runs-on: ubuntu-latest + permissions: + id-token: write + steps: + - uses: actions/checkout@v6 + - uses: rust-lang/crates-io-auth-action@v1 + id: auth + - run: cargo publish -p ic-wasm + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}