Skip to content

ci: Automate Homebrew tap formula bump on release publish#54

Open
dweekly wants to merge 1 commit into
mainfrom
ci/homebrew-tap-automation
Open

ci: Automate Homebrew tap formula bump on release publish#54
dweekly wants to merge 1 commit into
mainfrom
ci/homebrew-tap-automation

Conversation

@dweekly

@dweekly dweekly commented Jul 20, 2026

Copy link
Copy Markdown
Owner

Why

The Homebrew tap (dweekly/homebrew-ftr) was never part of the automated release pipeline and wasn't in RELEASE_PROCESS.md either — every bump was a hand-authored commit. It fell 4 releases behind: the formula served v0.6.0 while crates.io had v0.10.0. (The formula has since been manually bumped to v0.10.0.)

What

  • New publish-homebrew job in release.yml, gated the same way as the crates.io publish (release published, not prerelease): downloads the tag's source tarball, computes its SHA256, rewrites url/sha256 in the tap's ftr.rb, and pushes. No-ops if the formula is already current.
  • RELEASE_PROCESS.md: documents the Homebrew channel in pipeline/verification steps, adds a Required Secrets section, and a manual-fallback troubleshooting entry (including the download-then-hash gotcha that bit the v0.6.0 bump).

Action required before this works

Add a HOMEBREW_TAP_TOKEN repository secret: a fine-grained PAT scoped to dweekly/homebrew-ftr with Contents read/write. The default GITHUB_TOKEN can't push cross-repo.

Testing

  • YAML validated; sed patterns anchored to ^ url/^ sha256 so the head line is untouched (verified against the live formula)
  • The job path itself can only be exercised by the next real release publish

🤖 Generated with Claude Code

The tap (dweekly/homebrew-ftr) was a manual, undocumented release step
and fell 4 versions behind (stuck at v0.6.0 while crates.io had v0.10.0).
Add a publish-homebrew job that runs alongside the crates.io publish when
a release is published: computes the tag tarball SHA256, rewrites the
formula's url/sha256 in the tap repo, and pushes.

Requires a HOMEBREW_TAP_TOKEN repo secret (fine-grained PAT with push
access to dweekly/homebrew-ftr). Documents the Homebrew channel, required
secrets, and a manual fallback in RELEASE_PROCESS.md.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.31%. Comparing base (357ca3d) to head (9427efd).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #54   +/-   ##
=======================================
  Coverage   84.31%   84.31%           
=======================================
  Files          36       36           
  Lines        6663     6663           
=======================================
  Hits         5618     5618           
  Misses       1045     1045           
Flag Coverage Δ
unittests 84.31% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 357ca3d...9427efd. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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