Skip to content

Commit

Permalink
GoReleaser homebrew
Browse files Browse the repository at this point in the history
Signed-off-by: Kaan Karakaya <yusufkaan142@gmail.com>
  • Loading branch information
TheYkk committed Apr 4, 2022
1 parent 99cc3c2 commit b58532e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -26,4 +26,5 @@ jobs:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
11 changes: 11 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit b58532e

Please sign in to comment.