Skip to content

Commit

Permalink
Add Homebrew tap
Browse files Browse the repository at this point in the history
  • Loading branch information
janos committed Oct 25, 2023
1 parent a177bd8 commit 41131ff
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ jobs:
key: ${{ secrets.YOUR_PRIVATE_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_CMD_TAP_TOKEN: ${{ secrets.HOMEBREW_CMD_TAP_TOKEN }}
44 changes: 44 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,47 @@ nfpms:
- rpm

bindir: /usr/bin

brews:
-
name: newreleases

commit_author:
name: NewReleases Team
email: [email protected]

caveats: |
# Configuration
This tool needs to authenticate to NewReleases API using a secret Auth Key
that can be generated on the service settings web page
https://newreleases.io/settings/api-keys.
The key can be stored permanently by issuing interactive commands:
newreleases configure
or
newreleases get-auth-key
or it can be provided as the command line argument flag `--auth-key` on
every newreleases command execution.
# Usage
Refer to the complete list of all commands on the project's README on
https://github.com/newreleasesio/cli-go.
homepage: "https://github.com/newreleasesio/cli-go"
description: "A command line client for managing NewReleases projects."

license: "BSD-3-Clause"

test: |
system "#{bin}/newreleases version"
repository:
owner: newreleasesio
name: homebrew-cmd
token: "{{ .Env.HOMEBREW_CMD_TAP_TOKEN }}"
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ This tool is implemented using the Go programming language and can be also insta
go get -u newreleases.io/cmd/newreleases
```

## Homebrew

A convenience installation for macOS users.

```sh
brew install newreleasesio/cmd/newreleases
```

# Configuration

This tool needs to authenticate to NewReleases API using a secret Auth Key
Expand Down

0 comments on commit 41131ff

Please sign in to comment.