Skip to content

Commit 66d16b3

Browse files
zakisksavitaashture
authored andcommitted
fix: migrate from brews to homebrew_casks in goreleaser
made changes to goreleaser to use homebrews_casks instead of brews Signed-off-by: Zaki Shaikh <[email protected]>
1 parent 71027f9 commit 66d16b3

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.goreleaser.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,26 @@ release:
7474
7575
https://release-{{ replace .Tag "." "-" }}.pipelines-as-code.pages.dev
7676
77-
brews:
77+
homebrew_casks:
7878
- name: tektoncd-pac
7979
repository:
8080
owner: openshift-pipelines
8181
name: homebrew-pipelines-as-code
8282
directory: Formula
8383
dependencies:
84-
- name: tektoncd-cli
85-
type: optional
86-
- name: git
84+
- formula: tektoncd-cli
85+
- formula: git
8786
homepage: "https://pipelinesascode.com"
8887
description: tkn-pac - A command line interface for interacting with Pipelines as Code
89-
install: |
90-
bin.install "tkn-pac" => "tkn-pac"
91-
output = Utils.popen_read("SHELL=bash #{bin}/tkn-pac completion bash")
92-
(bash_completion/"tkn-pac").write output
93-
output = Utils.popen_read("SHELL=zsh #{bin}/tkn-pac completion zsh")
94-
(zsh_completion/"_tkn-pac").write output
95-
prefix.install_metafiles
88+
hooks:
89+
pre:
90+
install: |
91+
bin.install "tkn-pac" => "tkn-pac"
92+
output = Utils.popen_read("SHELL=bash #{bin}/tkn-pac completion bash")
93+
(bash_completion/"tkn-pac").write output
94+
output = Utils.popen_read("SHELL=zsh #{bin}/tkn-pac completion zsh")
95+
(zsh_completion/"_tkn-pac").write output
96+
prefix.install_metafiles
9697
nfpms:
9798
- file_name_template: >-
9899
tkn-pac-

0 commit comments

Comments
 (0)