From 4be18a82da407e0b245a5730323cde812f6827c7 Mon Sep 17 00:00:00 2001 From: Bruno de Carvalho Date: Sun, 22 Dec 2024 23:04:19 +0000 Subject: [PATCH] feat: setup goreleaser to update brew formula --- .github/workflows/release.yml | 2 +- .goreleaser.yml | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d02b64e..a139067 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,4 +21,4 @@ jobs: version: latest args: release --clean env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GORELEASER_GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index b7e6544..a6c553d 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -46,3 +46,21 @@ changelog: exclude: - "^docs:" # Exclude commits starting with "docs:" - "^test:" # Exclude commits starting with "test:" + +# Homebrew formulas to update on release +brews: + - name: sandworm + repository: + owner: umwelt-studio + name: homebrew-tap + token: "{{ .Env.GORELEASER_GITHUB_TOKEN }}" + homepage: "https://github.com/umwelt-studio/sandworm" + description: "Project file concatenator for Claude AI" + license: "MIT" + + test: | + system "#{bin}/sandworm --help" + + dependencies: + - name: go + type: build