1a1eab6ad5
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
34 lines
967 B
YAML
34 lines
967 B
YAML
# Publish a release to crates.io.
|
|
#
|
|
# Assumed to run as a subworkflow of .github/workflows/release.yml; specifically, as a publish job
|
|
# within `cargo-dist`.
|
|
name: "Publish to crates.io"
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
plan:
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
crates-publish-uv:
|
|
name: Upload uv to crates.io
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: release
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
persist-credentials: false
|
|
# TODO(zanieb): Switch to trusted publishing once published
|
|
# - uses: rust-lang/crates-io-auth-action@v1
|
|
# id: auth
|
|
- name: Publish workspace crates
|
|
# Note `--no-verify` is safe because we do a publish dry-run elsewhere in CI
|
|
run: cargo publish --workspace --no-verify
|
|
env:
|
|
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_TOKEN }}
|