diff --git a/.gitignore b/.gitignore index 66fd13c..96ff3c7 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,6 @@ # Dependency directories (remove the comment below to include it) # vendor/ + +# Distribution builds by goreleaser +dist/ diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..1890a53 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,31 @@ +before: + hooks: + - go mod download + +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + +archives: + - + name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}" + replacements: + 386: i386 + amd64: x86_64 + files: + - none* + +checksum: + name_template: '{{ .ProjectName }}_checksums.txt' + +snapshot: + name_template: "SNAPSHOT" + +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:'