Skip to content

Homebrew tokens in GitHub #4926

Answered by jftuga
jftuga asked this question in Q&A
Jun 9, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I got this working with the assistance of @gruffyn and ChatGPT. I am posting a full answer in case anyone else runs into this same problem. I've also created a GoReleaser and Hombrew public Gist with slightly more details.


In my .github/workflows/release.yml file:

      - name: run GoReleaser
        uses: goreleaser/goreleaser-action@v6
        env:
          HOMEBREW_TOKEN: ${{ secrets.HOMEBREW_TOKEN }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          args: release --clean

In my .goreleaser.yml file:

brews:
  - name: xxx
    repository:
      owner: xxx
      name: xxx-tap
      token: "{{ .Env.HOMEBREW_TOKEN }}"

This is what I've done in GitHub in the Repo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jftuga
Comment options

Answer selected by jftuga
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants