Homebrew release automation for copilot-cli#1
Merged
Conversation
Tag-driven release.yml publishes copilot.py as a release asset and regenerates the formula in natikgadzhi/homebrew-taps; tag.yml bumps __version__ and dispatches it. README documents brew install. https://claude.ai/code/session_01QQQNWfXFv9V9UMunBwGATJ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes
copilot.pyinstallable as acopilot-clicommand via Homebrew, so users no longer typeuv run copilot.py.What's here
.github/workflows/release.yml— on av*tag (orworkflow_dispatch): verifies__version__matches the tag, publishescopilot.pyas a release asset (verbatim, so its sha256 is the file's hash), creates the GitHub Release, then regeneratesFormula/copilot-cli.rbinnatikgadzhi/homebrew-tapsand pushes it..github/workflows/tag.yml— manualworkflow_dispatch(patch/minor/major) that bumps__version__incopilot.py, commitsRelease vX.Y.Zto main, tags, and dispatchesrelease.yml. Mirrors the copilot-auth repo's tagging flow.brew install natikgadzhi/taps/copilot-cli.Design
The formula keeps the single-file uv-script philosophy: it just
depends_on "uv"and wrapscopilot.py, letting uv resolve/cache the PEP 723 deps. No restructuring into a pip package.Required before first install
HOMEBREW_TAP_GITHUB_TOKEN— a PAT withcontents:writeonnatikgadzhi/homebrew-taps(so the release can push the formula). Same secret name your other tools (e.g. slack-cli) use.v0.4.0: push thev0.4.0tag (the script already reads0.4.0), or once merged, run the Tag workflow for the next version. The committed formula already matches the currentcopilot.pyhash.https://claude.ai/code/session_01QQQNWfXFv9V9UMunBwGATJ