Skip to content

Commit

Permalink
supporto homebrew-tap
Browse files Browse the repository at this point in the history
  • Loading branch information
Valkyrie00 committed Jan 28, 2025
1 parent a424493 commit a538fb2
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ jobs:
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GORELEASE }}
GITHUB_TOKEN: ${{ secrets.GORELEASE }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.GORELEASE }}
26 changes: 25 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,28 @@ builds:
- -s -w
archives:
- format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
brews:
- name: bold-brew
homepage: "https://github.com/Valkyrie00/bold-brew"
description: "A simple TUI tool to make your brews bold."
url_template: "https://github.com/Valkyrie00/bold-brew/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: goreleaserbot
email: [email protected]
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
directory: Formula
dependencies:
- name: go
test: |
system "#{bin}/bbrew --version"
install: |
bin.install "bbrew"
repository:
owner: Valkyrie00
name: homebrew-bbrew
branch: main
token: "{{ .Env.GITHUB_TOKEN }}"
pull_request:
enabled: true
draft: false

0 comments on commit a538fb2

Please sign in to comment.