🔖 v0.15.1 #63
Workflow file for this run
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: Release | |
# Do this on every push with a version tag | |
on: | |
push: | |
tags: | |
- "v*" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
publish-crate: | |
name: Publish to crates.io | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- name: Install Cargo Make | |
uses: davidB/rust-cargo-make@v1 | |
- name: Install Birli Dependencies | |
run: | | |
cargo make install_deps | |
- name: Check semver | |
uses: obi1kenobi/cargo-semver-checks-action@v1 | |
- run: cargo package | |
- uses: taiki-e/create-gh-release-action@v1 | |
with: | |
changelog: RELEASES.md | |
title: $version | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Cargo publish | |
run: | | |
cargo publish --token ${CARGO_REGISTRY_TOKEN} | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |