From 7400021acb3d5f75f5921eb7073907178f4f8d8b Mon Sep 17 00:00:00 2001 From: Benjamin Bengfort Date: Thu, 23 Sep 2021 07:18:28 -0500 Subject: [PATCH] Homebrew Release (#27) Updates goreleaser to push a formula to our homebrew-tools tap. --- .github/workflows/release.yaml | 3 ++- .goreleaser.yml | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 19c21d3..de491ff 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -34,4 +34,5 @@ jobs: args: release --rm-dist env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} \ No newline at end of file + GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} + HOMEBREW_TAP_GITHUB_TOKEN: ${{secrets.HOMEBREW_TAP_GITHUB_TOKEN}} \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index 9af5f0f..b66978c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -132,3 +132,23 @@ source: signs: - artifacts: checksum args: ["--batch", "-u", "{{ .Env.GPG_FINGERPRINT }}", "--output", "${signature}", "--detach-sign", "${artifact}"] + +# Publish a homebrew formulae on our brew tap +brews: + - + name: whisper + tap: + owner: rotationalio + name: homebrew-tools + token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" + + commit_author: + name: Rotational Labs + email: info@ + + homepage: "https://whisper.rotational.dev" + description: "Create and fetch whisper secret messages and files via the command line." + license: "Apache-2.0" + + test: | + system "#{bin}/whisper --version" \ No newline at end of file