diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7329a8d..5ce5ca1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 61fbcff..db2f247 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -56,3 +56,47 @@ nfpms: - rpm bindir: /usr/bin + +brews: + - + name: newreleases + + commit_author: + name: NewReleases Team + email: support@newreleases.io + + 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 }}" diff --git a/README.md b/README.md index 181c19e..64135f9 100644 --- a/README.md +++ b/README.md @@ -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