Skip to content

Commit

Permalink
Add action to publish releases on crates.io
Browse files Browse the repository at this point in the history
  • Loading branch information
314eter committed Dec 29, 2022
1 parent de07323 commit c8e0a92
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: publish

on:
push:
tags:
- v*

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0

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

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

- name: Publish crate
uses: katyo/publish-crates@v1
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit c8e0a92

Please sign in to comment.