Skip to content

Publish

Publish #8

Workflow file for this run

name: Publish
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use cached dependencies
uses: Swatinem/rust-cache@v2
- name: Check semver
run: |
cargo install cargo-semver-checks --locked
cargo semver-checks check-release
- name: Install cargo-release
run: cargo install cargo-release
- name: Login to Crates.io
run: cargo login ${{ secrets.CRATESIO_TOKEN }}
- name: Publish
run: cargo release publish --execute --no-confirm