From d72ae5357345a38db6cf71fe4655d213e3f0a88d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=BA=C5=A1=20Ferech?= Date: Mon, 28 Aug 2023 11:49:06 +0200 Subject: [PATCH] ci: add job to publish openapi-fuzzer to crates.io --- .github/workflows/ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 206302c..24a34e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,3 +41,19 @@ jobs: with: context: . push: false + + release: + name: Publish on crates.io + runs-on: ubuntu-latest + if: "startsWith(github.ref, 'refs/tags/')" + needs: [test] + steps: + - name: Install Rust + uses: dtolnay/rust-toolchain@master + with: + toolchain: stable + + - name: Publish on crates.io + run: | + cargo login ${{ secrets.CRATES_TOKEN }} + cargo publish