Skip to content

chore(release): publish to crates.io via cargo-release#164

Merged
bryantbiggs merged 1 commit into
mainfrom
chore/publish-crates-io
Jun 1, 2026
Merged

chore(release): publish to crates.io via cargo-release#164
bryantbiggs merged 1 commit into
mainfrom
chore/publish-crates-io

Conversation

@bryantbiggs
Copy link
Copy Markdown
Member

@bryantbiggs bryantbiggs commented Jun 1, 2026

Summary

  • Flips [package.metadata.release].publish from false to true in eksup/Cargo.toml so cargo release runs cargo publish as part of the release flow.
  • Binary distribution (GitHub releases + Homebrew) continues to be driven by the existing tag-triggered release workflow — no CI changes needed.
  • cargo-release's default ordering (bump → publish → tag → push) means a failed cargo publish aborts the release before any tag is pushed, so binaries + Homebrew can't drift ahead of crates.io.
  • Verified locally with cargo publish -p eksup --dry-run --locked --allow-dirty (packages and compiles cleanly from the packaged tarball).

Closes #163.

Notes

  • First publish will jump from 0.4.1 (last published 2023-11-28) to the next released version — non-sequential but legal on crates.io.
  • No new secrets required: cargo publish uses local ~/.cargo/credentials.toml.
  • The README's hardcoded version (README.md:33) is already kept in sync via the existing pre-release-replacements rule.

Test plan

  • On next release, confirm cargo release publishes successfully to crates.io.
  • After release, confirm cargo install eksup fetches the new version.

Flips `[package.metadata.release].publish` to `true` so `cargo release`
runs `cargo publish` as part of the release flow. Binary distribution
(GitHub releases + Homebrew) continues to be driven by the tag-triggered
release workflow.

Closes #163.
@bryantbiggs bryantbiggs force-pushed the chore/publish-crates-io branch from dc37158 to 546be81 Compare June 1, 2026 13:48
@bryantbiggs bryantbiggs merged commit d99578a into main Jun 1, 2026
7 checks passed
@bryantbiggs bryantbiggs deleted the chore/publish-crates-io branch June 1, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: Cargo Installation Instructions point at outdated version

1 participant