diff --git a/.goreleaser.yml b/.goreleaser.yml index b853f26..1fe65a0 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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 @@ -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:' \ No newline at end of file + - "^docs:" + - "^test:" \ No newline at end of file