Skip to content

Commit

Permalink
feat(release): add brew release
Browse files Browse the repository at this point in the history
  • Loading branch information
zackijack committed Jun 18, 2021
1 parent c633085 commit 1f06c83
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,24 @@ changelog:
- Merge branch
- go mod tidy

brews:
- tap:
owner: zackijack
name: homebrew-tap
folder: Formula
homepage: https://github.com/zackijack
description: Go project template
install: |
bin.install "go-project"
output = Utils.safe_popen_read({ "SHELL" => "bash" }, bin/"go-project", "completion", "bash")
(bash_completion/"go-project").write output
output = Utils.safe_popen_read({ "SHELL" => "zsh" }, bin/"go-project", "completion", "zsh")
(zsh_completion/"_go-project").write output
test: |
system "#{bin}/go-project version"
nfpms:
- file_name_template: "{{ .ProjectName }}_{{ .Arch }}"
homepage: https://github.com/zackijack/go-project
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ Go project template
## Install
You can install the pre-compiled binary in several different ways.

#### homebrew tap
```shell
$ brew tap zackijack/go-project [email protected]:zackijack/homebrew-tap
$ brew install go-project
```

#### deb/rpm
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.

Expand Down

0 comments on commit 1f06c83

Please sign in to comment.