From c01b0d62e5d4dbbf43f6f27123a49d88b9831525 Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Tue, 11 Jul 2023 17:12:11 +0100 Subject: [PATCH] release on CI (#43) * release on ci * prepare for merge --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b167526..b6f47f4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,3 +85,21 @@ jobs: uses: re-actors/alls-green@release/v1 with: jobs: ${{ toJSON(needs) }} + + release: + needs: [check] + if: "success() && startsWith(github.ref, 'refs/tags/')" + runs-on: ubuntu-latest + environment: release + + steps: + - uses: actions/checkout@v2 + + - name: install rust stable + uses: dtolnay/rust-toolchain@stable + + - uses: Swatinem/rust-cache@v2 + + - run: cargo publish + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}