Skip to content

Commit

Permalink
Add release workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaevan89 committed Dec 14, 2021
1 parent ecd415e commit 6a54d57
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish package to crates

on:
release:
types: [created]

jobs:
publish:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:

- name: Checkout
uses: actions/checkout@v2

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Publish to crates.io
uses: katyo/publish-crates@v1
with:
registry-token: ${{ secrets.CARGO_TOKEN }}

0 comments on commit 6a54d57

Please sign in to comment.