Skip to content

Commit 1f06c83

Browse files
committed
feat(release): add brew release
1 parent c633085 commit 1f06c83

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.goreleaser.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,24 @@ changelog:
5252
- Merge branch
5353
- go mod tidy
5454

55+
brews:
56+
- tap:
57+
owner: zackijack
58+
name: homebrew-tap
59+
folder: Formula
60+
homepage: https://github.com/zackijack
61+
description: Go project template
62+
install: |
63+
bin.install "go-project"
64+
65+
output = Utils.safe_popen_read({ "SHELL" => "bash" }, bin/"go-project", "completion", "bash")
66+
(bash_completion/"go-project").write output
67+
68+
output = Utils.safe_popen_read({ "SHELL" => "zsh" }, bin/"go-project", "completion", "zsh")
69+
(zsh_completion/"_go-project").write output
70+
test: |
71+
system "#{bin}/go-project version"
72+
5573
nfpms:
5674
- file_name_template: "{{ .ProjectName }}_{{ .Arch }}"
5775
homepage: https://github.com/zackijack/go-project

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ Go project template
44
## Install
55
You can install the pre-compiled binary in several different ways.
66

7+
#### homebrew tap
8+
```shell
9+
$ brew tap zackijack/go-project [email protected]:zackijack/homebrew-tap
10+
$ brew install go-project
11+
```
12+
713
#### deb/rpm
814
Download the `.deb` or `.rpm` from the [releases page](https://github.com/zackijack/go-project/releases) and install with `dpkg -i` and `rpm -i` respectively.
915

0 commit comments

Comments
 (0)