From 9850beaf84ab661fb43255f525b821f41b16b2f0 Mon Sep 17 00:00:00 2001 From: pepperoni21 Date: Sat, 11 Nov 2023 17:28:55 +0100 Subject: [PATCH] Update rust.yml --- .github/workflows/rust.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8ad0022..b5330b1 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -46,3 +46,17 @@ jobs: - name: Build run: cargo build --verbose + + publish: + name: Publish on Crates.IO + runs-on: ubuntu-latest + needs: [fmt, build] + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - uses: katyo/publish-crates@v2 + with: + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}