From a6fbb684f4ca5a2f18425d14b92b9df876e6c8db Mon Sep 17 00:00:00 2001 From: Thibault Le Ouay Date: Thu, 12 Jun 2025 22:26:02 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20goreleaser?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .goreleaser.yaml | 67 ++++++++++++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 31 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 56e7e9a..95f1a64 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -55,17 +55,47 @@ changelog: - "^docs:" - "^test:" -# homebrew_casks: +homebrew_casks: + - + name: openstatus + binary: openstatus + homepage: https://www.openstatus.dev + skip_upload: auto + description: "OpenStatus CLI" + directory: Casks + manpage: openstatus-docs.1 + repository: + owner: openstatusHQ + # Repository name. + # + # Templates: allowed. + name: homebrew-cli + branch: main + token: "{{ .Env.TAP_GITHUB_TOKEN }}" + + hooks: + post: + # replace foo with the actual binary name + install: | + if system_command("/usr/bin/xattr", args: ["-h"]).exit_status == 0 + # replace 'foo' with the actual binary name + system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/openstatus"] + end + +# brews: # - # name: openstatus -# binary: openstatus +# directory: Formula # homepage: https://www.openstatus.dev # skip_upload: auto -# description: "OpenStatus CLI" -# directory: Casks -# manpage: openstatus-docs.1 +# test: | +# system "#{bin}/openstatus --help" +# extra_install: | +# man1.install "openstatus-docs.1" # repository: - +# # Repository owner. +# # +# # Templates: allowed. # owner: openstatusHQ # # Repository name. @@ -76,28 +106,3 @@ changelog: # branch: main # token: "{{ .Env.TAP_GITHUB_TOKEN }}" - -brews: - - - name: openstatus - directory: Formula - homepage: https://www.openstatus.dev - skip_upload: auto - test: | - system "#{bin}/openstatus --help" - extra_install: | - man1.install "openstatus-docs.1" - repository: - # Repository owner. - # - # Templates: allowed. - owner: openstatusHQ - - # Repository name. - # - # Templates: allowed. - name: homebrew-cli - - - branch: main - token: "{{ .Env.TAP_GITHUB_TOKEN }}" -- 2.51.2