diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a1cd39d..f7cb3b1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,4 +60,20 @@ jobs: args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }} + + bump-formula: + needs: [release] + runs-on: ubuntu-latest + steps: + - name: Bump Homebrew formula + uses: mislav/bump-homebrew-formula-action@v3 + with: + formula-name: band + formula-path: Formula/band.rb + homebrew-tap: Bandwidth/homebrew-tap + base-branch: main + download-url: https://github.com/Bandwidth/cli/archive/refs/tags/${{ github.ref_name }}.tar.gz + commit-message: | + {{formulaName}} {{version}} + env: + COMMITTER_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 006d5e6..ecb94f9 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -51,26 +51,6 @@ docker_manifests: - "ghcr.io/bandwidth/cli:{{ .Version }}-amd64" - "ghcr.io/bandwidth/cli:{{ .Version }}-arm64" -brews: - - name: band - directory: Formula - repository: - owner: Bandwidth - name: homebrew-tap - branch: "band-{{.Version}}" - token: "{{ .Env.HOMEBREW_TAP_TOKEN }}" - pull_request: - enabled: true - base: - branch: main - homepage: "https://github.com/Bandwidth/cli" - description: "Bandwidth CLI — manage voice, messaging, numbers, and more from the command line" - license: "MIT" - install: | - bin.install "band" - test: | - system "#{bin}/band", "version" - changelog: sort: asc filters: