From 8aada58bf87fd63cbd5bfaa424ac34187f97ca5a Mon Sep 17 00:00:00 2001 From: Jonathan Whitaker Date: Mon, 10 Jul 2023 10:52:34 -0600 Subject: [PATCH 1/2] ci: add homebrew-tap release process to goreleaser manifest --- .goreleaser.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 7b9238e..6459cb8 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -107,6 +107,34 @@ docker_signs: - '${artifact}' - "--yes" # needed on cosign 2.0.0+ +brews: + - tap: + owner: openfga + name: homebrew-tap + pull_request: + enabled: true + homepage: "https://openfga.dev/" + description: "A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar." + license: "Apache-2.0" + folder: "Formula" + url_template: "https://github.com/openfga/openfga/releases/download/{{ .Tag }}/{{ .ArtifactName }}" + download_strategy: CurlDownloadStrategy + + # update the head formula on each release + custom_block: | + head "https://github.com/openfga/cli.git", :branch => "main" + dependencies: + - name: go + type: optional + - name: git + install: | + bin.install "fga" + bash_completion.install "completions/fga.bash" => "goreleaser" + zsh_completion.install "completions/fga.zsh" => "_goreleaser" + fish_completion.install "completions/fga.fish" + test: | + system "#{bin}/fga version" + archives: - rlcp: true files: From 5ccb37e2f17ff69d567898ac87858df1a326f36b Mon Sep 17 00:00:00 2001 From: Raghd Hamzeh Date: Tue, 11 Jul 2023 20:05:04 -0400 Subject: [PATCH 2/2] fix(ci): update brew details --- .goreleaser.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 6459cb8..2a452a7 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -114,10 +114,10 @@ brews: pull_request: enabled: true homepage: "https://openfga.dev/" - description: "A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar." + description: "A cross-platform CLI to interact with an OpenFGA server." license: "Apache-2.0" folder: "Formula" - url_template: "https://github.com/openfga/openfga/releases/download/{{ .Tag }}/{{ .ArtifactName }}" + url_template: "https://github.com/openfga/cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}" download_strategy: CurlDownloadStrategy # update the head formula on each release