From a24f63625235b08321d772ccac804658e677decd Mon Sep 17 00:00:00 2001 From: Caleb Sharp Date: Thu, 16 May 2024 23:09:36 -0700 Subject: [PATCH] build: add publish step to action --- .github/workflows/release.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 13b8278..4f88b40 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,3 +17,23 @@ jobs: with: token: ${{ secrets.RELEASE_PLEASE_TOKEN }} release-type: rust + publish: + name: Publish to crates.io + + runs-on: ubuntu-latest + needs: release-please + if: needs.release-please.outputs.created + + environment: crates.io + + steps: + - uses: actions/checkout@v4 + - run: rustup toolchain install stable --profile minimal + - uses: swatinem/rust-cache@v2 + + - name: Publish + run: > + cargo publish + --verbose + --locked + --token ${{ secrets.CARGO_REGISTRY_TOKEN }}