Skip to content

fix: auto-update Homebrew formula SHA on release#21

Open
AmanSwar wants to merge 1 commit intomainfrom
fix/auto-update-formula
Open

fix: auto-update Homebrew formula SHA on release#21
AmanSwar wants to merge 1 commit intomainfrom
fix/auto-update-formula

Conversation

@AmanSwar
Copy link
Collaborator

Summary

  • CI now automatically updates Formula/rcli.rb with the exact SHA256 from the build after uploading the release tarball
  • Prevents checksum mismatch issues like Homebrew checksum mismatch #15 — no more manual formula edits
  • Updated install instructions in release notes to use brew install runanywhereai/rcli/rcli (one-liner, always fetches latest)

Fixes #15

What changed

.github/workflows/release.yml — added Update Homebrew formula step that:

  1. Extracts version from the git tag
  2. Uses the SHA256 computed during the Package step
  3. Updates url, sha256, and version in Formula/rcli.rb via sed
  4. Commits and pushes to main

Rules going forward

  1. Never re-upload a tarball to an existing release — bump the version instead
  2. Never manually edit Formula/rcli.rb — CI owns it

Prevents checksum mismatch (fixes #15) by having CI
update Formula/rcli.rb with the exact SHA256 from the
build. Also updates install instructions to use the
fully-qualified brew install command.
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.

Homebrew checksum mismatch

1 participant