From 09fd1be814e4005e10e43d85b0162c553c8874fe Mon Sep 17 00:00:00 2001 From: baduker Date: Mon, 20 Nov 2023 23:39:11 +0100 Subject: [PATCH 1/5] initial brew tap set-up --- .goreleaser.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 8a5dccbd2..e7ddb990d 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 + tap: + owner: exercism + name: homebrew-exercism + commit_author: + name: goreleaserbot + email: goreleaserbot@exercism.org + folder: Formula + homepage: "https://exercism.org/" + description: "Command-line tool to interact with exercism.io" + test: | + system "exercism version" \ No newline at end of file From 7eb80eb1282326d3a9148232c78420c97a8112fe Mon Sep 17 00:00:00 2001 From: baduker Date: Tue, 21 Nov 2023 16:05:33 +0100 Subject: [PATCH 2/5] add a missing newline --- .goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index e7ddb990d..e04e2346c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -133,4 +133,4 @@ brews: homepage: "https://exercism.org/" description: "Command-line tool to interact with exercism.io" test: | - system "exercism version" \ No newline at end of file + system "exercism version" From e41f3e760e71e6646b68df0841d709b7db5fb3c1 Mon Sep 17 00:00:00 2001 From: baduker Date: Wed, 22 Nov 2023 17:28:30 +0100 Subject: [PATCH 3/5] update commit_author values --- .goreleaser.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index e04e2346c..f7e9aa98d 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -127,8 +127,8 @@ brews: owner: exercism name: homebrew-exercism commit_author: - name: goreleaserbot - email: goreleaserbot@exercism.org + 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" From 83a63ba1017727429f7dfc685c4ad29e4a81f725 Mon Sep 17 00:00:00 2001 From: baduker Date: Wed, 22 Nov 2023 17:57:08 +0100 Subject: [PATCH 4/5] use repository as tap is deprecated --- .goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index f7e9aa98d..1fa59b225 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -123,7 +123,7 @@ release: brews: - name: exercism - tap: + repository: owner: exercism name: homebrew-exercism commit_author: From 7b906a925c0e960a1b94c4737862efcd7aefc641 Mon Sep 17 00:00:00 2001 From: baduker Date: Wed, 22 Nov 2023 18:48:51 +0100 Subject: [PATCH 5/5] remove brew todo and add goreleaser brew tap info --- RELEASE.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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