Skip to content

Publish Crate

Publish Crate #4

Workflow file for this run

name: Publish Crate
on:
push:
branches:
- main
paths:
- Cargo.toml
release:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Install alsa system packages
run: apt-get update && apt-get install -y libasound2-dev libudev-dev
- uses: actions/checkout@v3
- name: Set up Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Publish to crates.io
uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}