Homebrew taps (which host macOS package formulae) require a specific GitHub naming convention and repository layout, and unlike Linux packages, can't be served as static content from GitHub Pages. The necessary repository layout will be built in GitHub Actions and pushed to shaka-project/homebrew-shaka-lab, which satisfies the required name and layout of a Homebrew tap.
This deployment will allow users to use the brew tap
command and receive
update notifications from Homebrew for their macOS packages.
- Create a tap repo (
homebrew-shaka-lab
). - Create a GitHub Personal Access Token (PAT) for a user authorized on the
homebrew-shaka-lab
repo. For example, we are usingshaka-bot
. The access token must have therepo
scope enabled. - Copy the PAT into GitHub as a secret on this repository named
HOMEBREW_DEPLOY_TOKEN
. - Create a GitHub repository secret named
HOMEBREW_TAP_REPO
with the name of the repository where the homebrew tap will be deployed. For example, we are usingshaka-project/homebrew-shaka-lab
.
The release.yaml
workflow will use the stored PAT to push to the homebrew tap
repository.