Skip to content

Commit

Permalink
release on CI (#43)
Browse files Browse the repository at this point in the history
* release on ci

* prepare for merge
  • Loading branch information
samuelcolvin authored Jul 11, 2023
1 parent efada24 commit c01b0d6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit c01b0d6

Please sign in to comment.