Skip to content

Commit ec0b440

Browse files
authored
Merge pull request #8 from Bandwidth/feat/source-build-formula
Switch Homebrew tap to a source-build formula
2 parents 717e52e + e084320 commit ec0b440

2 files changed

Lines changed: 17 additions & 21 deletions

File tree

.github/workflows/release.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,20 @@ jobs:
6060
args: release --clean
6161
env:
6262
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63-
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
63+
64+
bump-formula:
65+
needs: [release]
66+
runs-on: ubuntu-latest
67+
steps:
68+
- name: Bump Homebrew formula
69+
uses: mislav/bump-homebrew-formula-action@v3
70+
with:
71+
formula-name: band
72+
formula-path: Formula/band.rb
73+
homebrew-tap: Bandwidth/homebrew-tap
74+
base-branch: main
75+
download-url: https://github.com/Bandwidth/cli/archive/refs/tags/${{ github.ref_name }}.tar.gz
76+
commit-message: |
77+
{{formulaName}} {{version}}
78+
env:
79+
COMMITTER_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}

.goreleaser.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -51,26 +51,6 @@ docker_manifests:
5151
- "ghcr.io/bandwidth/cli:{{ .Version }}-amd64"
5252
- "ghcr.io/bandwidth/cli:{{ .Version }}-arm64"
5353

54-
brews:
55-
- name: band
56-
directory: Formula
57-
repository:
58-
owner: Bandwidth
59-
name: homebrew-tap
60-
branch: "band-{{.Version}}"
61-
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
62-
pull_request:
63-
enabled: true
64-
base:
65-
branch: main
66-
homepage: "https://github.com/Bandwidth/cli"
67-
description: "Bandwidth CLI — manage voice, messaging, numbers, and more from the command line"
68-
license: "MIT"
69-
install: |
70-
bin.install "band"
71-
test: |
72-
system "#{bin}/band", "version"
73-
7454
changelog:
7555
sort: asc
7656
filters:

0 commit comments

Comments
 (0)