Skip to content
\n

Here is the brews section of my .goreleaser.yml file:

\n
brews:\n  - name: xxx\n    repository:\n      owner: jftuga\n      name: homebrew-tap\n    commit_author:\n      name: xxx\n      email: xxx\n    homepage: xxx\n    description: xxx\n    test: system \"#{bin}/dtdiff -v\"\n    token: \"{{ .Env.HOMEBREW_TOKEN }}\"\n    install: bin.install \"xxx\"
\n

How can I fix this?

\n

This works without token if i manually run it from my local system, but I now want this to be apart of a GitHub Action.

\n

Thanks.

","upvoteCount":2,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

token must be inside the repository part, as per docs https://goreleaser.com/customization/homebrew/

","upvoteCount":1,"url":"https://github.com/orgs/goreleaser/discussions/4924#discussioncomment-9721542"}}}

need help with this error: field token not found in type config.Homebrew #4924

Closed Answered by caarlos0
jftuga asked this question in Q&A
Discussion options

You must be logged in to vote

token must be inside the repository part, as per docs https://goreleaser.com/customization/homebrew/

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