Skip to content

Commit

Permalink
ci(release): update goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
joaofnds committed Oct 7, 2024
1 parent b84ffad commit eddbe7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.PAT }}
Expand Down
16 changes: 5 additions & 11 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 2

before:
hooks:
- go mod tidy
Expand All @@ -10,19 +12,11 @@ builds:
- windows
- darwin

archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64

checksum:
name_template: "checksums.txt"

snapshot:
name_template: "{{ incpatch .Version }}-next"
version_template: "{{ incpatch .Version }}-next"

changelog:
sort: asc
Expand All @@ -32,7 +26,7 @@ changelog:
- "^test:"

brews:
- tap:
- repository:
owner: joaofnds
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
Expand All @@ -41,7 +35,7 @@ brews:
email: [email protected]
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
url_template: "https://github.com/joaofnds/astro/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
folder: Formula
directory: Formula
homepage: "https://github.com/joaofnds/astro"
description: "a habit tracker for your terminal with a GitHub style activity graph"
license: "MIT"
Expand Down

0 comments on commit eddbe7b

Please sign in to comment.