Skip to content

Commit

Permalink
fix: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
nonacosa committed Nov 26, 2024
1 parent faaefd5 commit 87fa73b
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
version: 2

dist: ./build/release

before:
hooks:
- go mod download

builds:
- id: nmg
main: ./main.go
ldflags:
- -s -w
- -X github.com/nonacosa/{{ .ProjectName }}/cmd.release={{.Version}}
- -X github.com/nonacosa/{{ .ProjectName }}/cmd.commit={{.Commit}}
- -X github.com/nonacosa/{{ .ProjectName }}/cmd.repo={{.GitURL}}
- -X github.com/nonacosa/{{ .ProjectName }}/cmd.release={{ .Version }}
- -X github.com/nonacosa/{{ .ProjectName }}/cmd.commit={{ .Commit }}
- -X github.com/nonacosa/{{ .ProjectName }}/cmd.repo={{ .GitURL }}
goos:
- linux
- darwin
Expand All @@ -23,20 +26,21 @@ builds:
goarch: arm64

archives:
- name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
replacements:
darwin: macos
- name_template: "{{ .ProjectName }}-{{ .Os | toUpper }}-{{ .Arch }}"
format: tar.gz
format_overrides: # archive as zip on Windows
format_overrides:
- goos: windows
format: zip

checksum:
name_template: 'checksums.txt'
name_template: "checksums.txt"

snapshot:
name_template: "{{ .Tag }}-next"

changelog:
sort: desc
filters:
exclude:
- '^docs:'
- '^test:'
- "^docs:"
- "^test:"

0 comments on commit 87fa73b

Please sign in to comment.