Skip to content

🔖 v0.15.1

🔖 v0.15.1 #63

Workflow file for this run

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 }}