From 711bba8dec102de2d29be4f65cdb204d58a33217 Mon Sep 17 00:00:00 2001 From: Daniel Rocha Date: Thu, 28 Apr 2022 19:04:00 +0200 Subject: [PATCH] chore: add `.goreleaser.yaml` --- .gitignore | 3 ++- .goreleaser.yaml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .goreleaser.yaml diff --git a/.gitignore b/.gitignore index f40d2d4..51a378f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /htp -/htp.exe \ No newline at end of file +/htp.exe +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..ff6b39a --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,31 @@ +before: + hooks: + - go mod tidy +gomod: + proxy: true +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + - windows + - darwin + main: ./cmd/htp/ +archives: + - replacements: + darwin: macos + 386: x86 + format_overrides: + - goos: windows + format: zip + wrap_in_directory: true +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ incpatch .Version }}-snapshot" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:'