From e7d7bf434aa07cce52de5cc6621279695441fb8a Mon Sep 17 00:00:00 2001 From: Freddie Ridell Date: Sat, 7 Mar 2026 23:44:07 +0000 Subject: [PATCH] Add GitHub Actions workflow for trusted publishing --- .github/workflows/publish.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 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 00000000..c3430ffe --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,37 @@ +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@v4 + + - uses: dtolnay/rust-toolchain@stable + + - uses: rust-lang/crates-io-auth-action@v1 + id: auth + + - run: cargo publish -p bough-typed-hash-derive + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} + + - run: cargo publish -p bough-typed-hash + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} + + - run: cargo publish -p bough-core + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} + + - run: cargo publish -p bough-cli + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} -- knotmirror 0.0.1