Skip to content

Commit

Permalink
ci: add release workflow to publish the crate
Browse files Browse the repository at this point in the history
  • Loading branch information
bmuddha committed Dec 24, 2024
1 parent 9fd9388 commit ac572d6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish to crates.io

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Rust
uses: actions/setup-rust@v1
with:
rust-version: stable

- name: Publish to Crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish

0 comments on commit ac572d6

Please sign in to comment.