From 34075e4f3f845f0b4e11514fdcb48f85d36cd4ab Mon Sep 17 00:00:00 2001 From: Michael Rykov Date: Tue, 10 Aug 2021 14:22:17 +0800 Subject: [PATCH] =?UTF-8?q?Added=20=E2=80=9Cbrews=E2=80=9D=20to=20.gorelea?= =?UTF-8?q?ser.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/goreleaser.yml | 1 + .goreleaser.yml | 33 ++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index c4c97c5..617a41e 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -30,4 +30,5 @@ jobs: version: latest args: release --rm-dist env: + BREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 79ad5d9..dcbd1bc 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -49,3 +49,36 @@ changelog: release: draft: true + +brews: + - + # Name template of the recipe + name: fury-cli + + # GitHub repository to receive formula + tap: + owner: gemfury + name: homebrew-tap + token: "{{ .Env.BREW_TAP_GITHUB_TOKEN }}" + + # Git author used to commit to the repository. + commit_author: + email: goreleaser@gemfury.com + name: goreleaser + + # Folder inside the repository to put the formula. + folder: Formula + + # App's homepage. + homepage: "https://gemfury.com/" + + # App's description. + description: "CLI For Gemfury Package Repository" + + # Conflicts with Ruby CLI + conflicts: + - gemfury + + # Run to `brew test` the formula. + test: | + system "#{bin}/fury --version"