Skip to content

Publish to crate

Publish to crate #24

Workflow file for this run

on:
release:
types: [created]
name: Publish to crate
jobs:
publish:
name: Publish to cargo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- run: cargo test
- uses: katyo/publish-crates@v1
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}