Skip to content

Commit

Permalink
Add release CI
Browse files Browse the repository at this point in the history
  • Loading branch information
benbrandt committed May 5, 2023
1 parent 43241ab commit c68922c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release

on:
push:
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
release:
name: Publish to crates.io
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Publish to crates.io
env:
CRATES_IO_TOKEN: ${{secrets.CRATES_IO_TOKEN}}
run: |
cargo publish --token "${CRATES_IO_TOKEN}"

0 comments on commit c68922c

Please sign in to comment.