diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 00000000..bc550dad --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,25 @@ +before: + hooks: + - go mod download + +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + - windows + - darwin + goarch: + - amd64 + ldflags: + - -s -w -X main.version={{.Version}} + mod_timestamp: '{{ .CommitTimestamp }}' # Ensure builds are reproducible + +archives: + - name_template: '{{ .ProjectName }}-{{ replace .Version "v" "" }}-{{ .Os }}-{{ .Arch }}' + +checksum: + name_template: 'checksums.txt' + +snapshot: + name_template: "{{ .Tag }}-next"