Skip to content

ci: automate crates.io and Homebrew publishing without stored tokens - #23

Merged
borghei merged 1 commit into
mainfrom
ci/automate-brew-and-crates
Oct 1, 2026
Merged

borghei merged 1 commit into
mainfrom
ci/automate-brew-and-crates

Conversation

@borghei

@borghei borghei commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Summary

crates.io and the Homebrew tap were bumped by hand on every release. CRATES_IO_TOKEN was never set and HOMEBREW_TAP_TOKEN had expired, while both jobs reported success.

  • crates.io: Trusted Publishing. crates.io now trusts release.yml in this repo for ink-md, and the job exchanges its OIDC token for a short-lived publish token. No stored secret. The job skips when the version is already published, and a manual run only rehearses with cargo publish --dry-run.
  • Homebrew: the tap is pushed with an SSH deploy key that can write to borghei/homebrew-tap only (HOMEBREW_TAP_DEPLOY_KEY). Failures are no longer swallowed. When the formula is already current, the job still does a dry-run push to prove the key works.

Testing

Both paths are exercised from this branch by manual dispatch before merging; results in the PR comments.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UVcvmQrSXd2eyt32g4ko19

… a deploy key

Both channels were bumped by hand every release: CRATES_IO_TOKEN was never
set and HOMEBREW_TAP_TOKEN had expired, while both jobs reported success.

- crates: OIDC token exchange (rust-lang/crates-io-auth-action), no stored
  token; skips when the version is already published; manual runs rehearse
  with --dry-run
- homebrew: SSH deploy key scoped to borghei/homebrew-tap; failures are no
  longer swallowed; an up-to-date formula still proves the key can push
@borghei

borghei commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Rehearsed from this branch: the Homebrew workflow cloned the tap with the deploy key and found the formula current (run 36878682974). The crates job exchanged its OIDC token for a crates.io token and completed cargo publish --dry-run (run 36878688782).

@borghei
borghei merged commit 6b249cc into main Oct 1, 2026
35 checks passed
@borghei
borghei deleted the ci/automate-brew-and-crates branch October 1, 2026 14:54
@borghei borghei mentioned this pull request Oct 1, 2026
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.

1 participant