Publish #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |