name: Release
# Publish `proto-build-kit` to crates.io on `v*` tag pushes (e.g. v0.1.0).
# Tags are created automatically by the `Auto-tag` workflow whenever the
# version in `Cargo.toml` advances past the latest tag on main.
on:
push:
tags:
- 'v*'
jobs:
release-rust:
uses: brefwiz/shared-ci-workflows/.github/workflows/release-rust.yml@main
with:
# Single-crate workspace; no satellite crates.
crates: "proto-build-kit"
secrets:
cargo-registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
permissions:
contents: write