Skip to content

Commit 29be977

Browse files
committed
chore(ci): add Homebrew installation instructions and configure Homebrew tap
1 parent 21067d5 commit 29be977

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

.goreleaser.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,21 @@ release:
4545
owner: imfing
4646
name: diffs-cli
4747

48+
brews:
49+
- name: diffs
50+
repository:
51+
owner: imfing
52+
name: homebrew-tap
53+
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
54+
directory: Formula
55+
homepage: "https://github.com/imfing/diffs-cli"
56+
description: "Fast, beautiful diffs on the Go"
57+
license: "Apache-2.0"
58+
install: |
59+
bin.install "diffs"
60+
test: |
61+
assert_match "Review local diffs", shell_output("#{bin}/diffs --help")
62+
4863
snapshot:
4964
version_template: "{{ incpatch .Version }}-next"
5065

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ Fast, beautiful diffs on the Go.
2121

2222
Download a pre-built binary from the [releases page](https://github.com/imfing/diffs-cli/releases), or build from source.
2323

24+
Install with Homebrew:
25+
26+
```sh
27+
brew tap imfing/tap
28+
brew install diffs
29+
```
30+
2431
Run from any git repository:
2532

2633
```sh

0 commit comments

Comments
 (0)