-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: brew install 🍻 #114
feat: brew install 🍻 #114
Conversation
the provided GITHUB_TOKEN is not enough if we need to push to another repo (brew tap): https://github.com/goreleaser/goreleaser-action#limitation
@@ -25,4 +25,4 @@ jobs: | |||
version: latest | |||
args: release --rm-dist | |||
env: | |||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |||
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is to allow goreleaser changes on external repository https://github.com/auth0/homebrew-auth0-cli
@@ -8,9 +8,11 @@ import ( | |||
|
|||
func completionCmd(cli *cli) *cobra.Command { | |||
cmd := &cobra.Command{ | |||
Use: "completion [bash|zsh|fish|powershell]", | |||
Use: "completion", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to align with other commands but also to keep the skip-login logic simple.
Co-authored-by: Cyril David <[email protected]>
Add homebrew release.
The tap is pushed here: https://github.com/auth0/homebrew-auth0-cli.
To install
see: https://docs.brew.sh/How-to-Create-and-Maintain-a-Tap
Regarding formula "name":
Homebrew resolves which formula file to install and from which public repo should get it as:
auth0/homebrew-{auth0-cli}/auth0
.Eventually, auth0-cli CI/CD could push its formula to homebrew-core and therefore offer the default support for brew install auth0 (it would be really nice).
Keep in mind submissions to homebrew core are not covered by goreleaser, something like this can be used: https://github.com/mislav/bump-homebrew-formula-action
see: https://docs.brew.sh/Acceptable-Formulae
TODO:
GORELEASER_GITHUB_TOKEN
with an Auth0 token to push changes to the tap repo. It is currently using a personal token.Screen.Recording.2021-03-06.at.23.13.16.mov