Skip to content

Commit

Permalink
Add publish crate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cyqsimon committed Sep 19, 2023
1 parent eba3562 commit 94bbb43
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish-crate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: publish-crate
on:
release:
types:
- released
workflow_dispatch:

jobs:
publish-to-crates-io:
name: Publish to crates.io
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable

- name: Run cargo publish
uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit 94bbb43

Please sign in to comment.