chore(release): bump version #6
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: CD | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
publish-github: | |
name: Publish on GitHub | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set the release version | |
run: echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV | |
- name: Install Rust stable | |
uses: dtolnay/rust-toolchain@stable | |
- name: Cache Cargo dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Check | |
run: cargo check --locked | |
- name: Generate a changelog | |
uses: orhun/git-cliff-action@v4 | |
id: git-cliff | |
with: | |
args: --latest --github-repo ${{ github.repository }} | |
env: | |
OUTPUT: CHANGES.md | |
- name: Create release | |
run: gh release create "${{ github.ref_name }}" -F CHANGES.md | |
env: | |
GH_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }} | |
publish-crates-io: | |
name: Publish on crates.io | |
needs: publish-github | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Install Rust stable | |
uses: dtolnay/rust-toolchain@stable | |
- name: Publish | |
run: cargo publish --locked --token ${{ secrets.CARGO_REGISTRY_TOKEN }} |