From b58532ebed0e430ae74c37c84fe87eb336e78967 Mon Sep 17 00:00:00 2001 From: Kaan Karakaya Date: Tue, 5 Apr 2022 00:05:39 +0300 Subject: [PATCH] GoReleaser homebrew Signed-off-by: Kaan Karakaya --- .github/workflows/release.yml | 5 +++-- .goreleaser.yml | 11 +++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5741115..2113da5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.16 + go-version: 1.18 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 @@ -26,4 +26,5 @@ jobs: version: latest args: release --rm-dist env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index aae3c12..8b94600 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -28,3 +28,14 @@ changelog: exclude: - '^docs:' - '^test:' +brews: + - tap: + owner: theykk + name: homebrew-tap + token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" + commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" + folder: Formula + description: "Switch between your git profiles easily" + license: "Apache 2.0" + install: | + bin.install "git-switcher" \ No newline at end of file