RCLI icon indicating copy to clipboard operation
RCLI copied to clipboard

fix: auto-update Homebrew formula SHA on release

Open AmanSwar opened this issue 8 months ago • 0 comments

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 #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

AmanSwar avatar Mar 10 '26 23:03 AmanSwar