Skip to content

Commit

Permalink
fix: update goreleaser configuration and improve Homebrew formula det…
Browse files Browse the repository at this point in the history
…ails
  • Loading branch information
jasonuc committed Dec 13, 2024
1 parent 0dfd896 commit 2a8f9fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
28 changes: 10 additions & 18 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 2

before:
hooks:
- go mod tidy
Expand All @@ -14,28 +16,18 @@ builds:

archives:
- format: binary
name_template: >-
{{ .ProjectName }}_
{{ .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ title .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}_{{ .Timestamp }}"

brews:
- name: greentext
homepage: https://github.com/jasonuc/greentext
- name: "greentext"
homepage: "https://github.com/jasonuc/greentext"
license: MIT
folder: Formula
description: Greentext is a 4chan greentext generator.
tap:
description: A CLI tool for creating green-text memes
directory: Formula
repository:
owner: jasonuc
name: homebrew-tap
branch: master
commit_author:
name: jasonuc
email: me@jasonuc.com
branch: main

release:
prerelease: auto
Expand All @@ -51,7 +43,7 @@ release:
### Go
```
go install github.com/jasonuc/greentext@{{ .Version }}
go install github.com/jasonuc/greentext@v{{ .Version }}
```
changelog:
Expand Down

0 comments on commit 2a8f9fb

Please # to comment.