Skip to content

Commit 48e51f7

Browse files
committed
ci: migrate goreleaser brews to homebrew_casks
- GoReleaser v2 deprecated `brews`; `goreleaser check` fails the release gate on it. Migrate to `homebrew_casks` with a `binaries` stanza (the right model for a prebuilt binary) and drop the formula-only install/test/license fields.
1 parent 6e5a6bf commit 48e51f7

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

.goreleaser.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,24 +76,23 @@ release:
7676
name: siphon
7777
prerelease: auto # tags like v1.0.0-rc1 → marked prerelease automatically
7878

79-
# Homebrew tap. Publishes to a SEPARATE repo (nixrajput/homebrew-siphon) using
79+
# Homebrew cask. Publishes to a SEPARATE repo (nixrajput/homebrew-siphon) using
8080
# a PAT in HOMEBREW_TAP_GITHUB_TOKEN. skip_upload: auto means snapshots and
81-
# prereleases do NOT push the formula, so the core release succeeds even before
82-
# the tap repo / token exist — light up brew on a later stable release.
83-
brews:
81+
# prereleases do NOT push the cask, so the core release succeeds even before
82+
# the tap repo / token exist. GoReleaser v2 renamed `brews` → `homebrew_casks`;
83+
# a cask is the right model for a prebuilt binary (declare it via `binaries`
84+
# rather than an imperative formula install block).
85+
homebrew_casks:
8486
- name: siphon
87+
binaries:
88+
- siphon
8589
repository:
8690
owner: nixrajput
8791
name: homebrew-siphon
8892
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
8993
homepage: "https://github.com/nixrajput/siphon"
9094
description: "Sync any database, anywhere — backup, restore, and sync across engines."
91-
license: "MIT"
9295
skip_upload: auto
93-
install: |
94-
bin.install "siphon"
95-
test: |
96-
system "#{bin}/siphon", "--version"
9796

9897
# Scoop bucket (Windows). Publishes to nixrajput/scoop-siphon via
9998
# SCOOP_TAP_GITHUB_TOKEN; same skip_upload: auto tolerance as brew.

0 commit comments

Comments
 (0)