cyberneticlibrary

Publish Rust crate with PR workflow

rust-crate-publishworkflowsetup L31
b4fun/smol-workflows
What it does

Orchestrate Rust crate release: detect intent→update files→commit→PR→merge→GitHub release

Best for

Automating Rust release ceremonies with multi-phase intent detection and merge polling.

Inputs
  • · natural-language release request
Outputs
  • · semver version chosen
  • · PR URL + number
  • · merge commit SHA
  • · GitHub release URL
Requires
  • · git
  • · cargo
  • · gh CLI
  • · GitHub Actions (crates.io publish, binary release workflows)
Preconditions

Rust project with Cargo.toml; git repo initialized; gh authenticated; GitHub Actions configured

Failure modes
  • · Release intent ambiguous → assumptions + verification steps emitted
  • · PR merge polls with backoff
  • · Workflow runs may complete async
Trust signals
  • · Semver bump strategy explicit (explicit-version / semver-bump / alpha-bump)
  • · Code prep validates before PR open
  • · Merge polling before tag creation