Skip to content

Commit

Permalink
ci: add homebrew-tap release process to goreleaser manifest (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh authored Jul 12, 2023
2 parents 11841c2 + c6299c5 commit 3fdb427
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 cross-platform CLI to interact with an OpenFGA server."
license: "Apache-2.0"
folder: "Formula"
url_template: "https://github.com/openfga/cli/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"
checksum:
name_template: 'checksums.txt'

Expand Down

0 comments on commit 3fdb427

Please sign in to comment.