From c7a8a26ea2b22edab8a51801ccabab960bd2cf9e Mon Sep 17 00:00:00 2001 From: kennethloeffler Date: Tue, 9 Apr 2024 16:53:04 -0700 Subject: [PATCH] Add publish job --- .github/workflows/release.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8219cd1cc..40db1b1c6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -133,3 +133,19 @@ jobs: with: path: ${{ env.ARTIFACT_NAME }} name: ${{ env.ARTIFACT_NAME }} + + publish: + name: Publish to crates.io + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: true + + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + + - name: Run publish action + uses: katyo/publish-crates@v2 + with: + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}