File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : " Rust SDK: Publish Release"
22
33# Publishes the `copilot-sdk` crate to crates.io when a release-plz
4- # version-bump PR is merged to `main`. release-plz detects that the
5- # current HEAD's `Cargo.toml` version is newer than the latest
6- # `rust-vX.Y.Z` tag, then runs `cargo publish` and creates the tag +
7- # GitHub Release.
8- #
9- # Does NOTHING on non-release commits — safe to run on every push.
10- #
11- # ## Setup checklist (one-time, before enabling this workflow)
12- #
13- # 1. Reserve the `copilot-sdk` crate name on crates.io via the owner
14- # account (the GitHub service account or a human maintainer with
15- # crates.io 2FA).
16- # 2. Generate a crates.io API token scoped to publish `copilot-sdk`
17- # only (Account Settings → API Tokens → "New Token" → restrict
18- # crates to `copilot-sdk`).
19- # 3. Add it to this repository's secrets as `CARGO_REGISTRY_TOKEN`.
20- # 4. Rotate the token annually and whenever maintainers change.
21- #
22- # Until the setup checklist is complete, this workflow will fail on
23- # `cargo publish`. That's intentional — it keeps accidental publishes
24- # from happening before the repo is ready.
4+ # version-bump PR is merged to `main`. See rust/RELEASING.md for the
5+ # full release process and one-time setup (CARGO_REGISTRY_TOKEN, etc).
256
267on :
278 push :
You can’t perform that action at this time.
0 commit comments