name: Publish
on:
workflow_dispatch:
inputs:
tag:
description: "Which tag to release as:"
required: true
permissions: {}
jobs:
publish-crate:
runs-on: ubuntu-24.04
environment: production
permissions:
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with:
fetch-depth: 0
- uses: rust-lang/crates-io-auth-action@bbd81622f20ce9e2dd9622e3218b975523e45bbe id: auth
- run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}