Skip to content

Commit

Permalink
solution: CI task to publish a release to crates registry
Browse files Browse the repository at this point in the history
  • Loading branch information
splix committed May 14, 2023
1 parent 3121b73 commit a002184
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish
on:
release:
types: [created]

jobs:

publish-crates:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Publish to Crates
uses: actions-rs/cargo@v1
with:
command: publish
args: --token ${{ secrets.CRATES_TOKEN }}
env:
RUST_BACKTRACE: "1"

0 comments on commit a002184

Please sign in to comment.