diff --git a/.goreleaser.yml b/.goreleaser.yml index 8a5dccbd2..770356e32 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -120,5 +120,17 @@ release: # Default is `{{.Tag}}` name_template: "{{.ProjectName}}-v{{.Version}} {{.Env.USER}}" -# brews: -# We do not use the brew config, which is for taps, not core forumulas. +brews: + - + name: exercism + repository: + owner: exercism + name: cli + commit_author: + name: Exercism Bot + email: 66069679+exercism-bot@users.noreply.github.com + folder: Formula + homepage: "https://exercism.org/" + description: "Command-line tool to interact with exercism.io" + test: | + system "exercism version" diff --git a/RELEASE.md b/RELEASE.md index 566db9f83..87155f4e8 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -40,9 +40,11 @@ goreleaser --skip-publish --snapshot --clean # Create a new tag on the main branch and push it git tag -a "${TAG_NAME}" -m "Trying out GoReleaser" git push origin "${TAG_NAME}" - -# [TODO] Push to homebrew ``` +Brew tap is now managed by `.goreleaser.yml` so no need to update it manually. +GoReleaser can generate and publish a homebrew-tap recipe into a repository +automatically. See [GoReleaser docs](https://goreleaser.com/customization/homebrew/) +for more details. ## Cut Release on GitHub