Skip to content

docs: fix title

docs: fix title #97

Workflow file for this run

name: Tag
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
RUSTDOCFLAGS: '--deny warnings'
MINIMUM_SUPPORTED_RUST_VERSION: 1.85.0
permissions:
contents: write
on:
push:
branches:
- main
paths-ignore:
- CHANGELOG.md
jobs:
tag:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
outputs:
created: ${{ steps.tag.outputs.created }}
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Get tags
run: git fetch --tags origin
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustc, cargo
- uses: Swatinem/rust-cache@v2
- name: Configure git
run: |
git config --global user.name "${ACTOR}"
git config --global user.email "${ACTOR_ID}+${ACTOR}@users.noreply.github.com"
git config --global push.autoSetupRemote true
env:
ACTOR: ${{ github.actor }}
ACTOR_ID: ${{ github.actor_id }}
- name: Get the version
id: current
run: echo "version=$(cargo pkgid --manifest-path crates/bin/Cargo.toml | cut -d '@' -f2)" >> "$GITHUB_OUTPUT"
- name: Create git tag
id: tag
run: |
if git tag -a "v${VERSION}" -m "${VERSION}"; then
echo "created=true" >> "$GITHUB_OUTPUT"
else
echo "::notice title=Git tag:: The version ${VERSION} already exists. The \`publish\` workflow won't be executed."
echo "created=false" >> "$GITHUB_OUTPUT"
fi
env:
VERSION: ${{ steps.current.outputs.version }}
publish:
needs: tag
if: ${{ needs.tag.outputs.created == 'true' }}
uses: ./.github/workflows/publish.yml
permissions:
contents: write
actions: write
packages: write
attestations: write
id-token: write
pull-requests: write
secrets: inherit