summaryrefslogtreecommitdiff
path: root/.github/goreleaser.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/goreleaser.yml')
-rw-r--r--.github/goreleaser.yml46
1 files changed, 46 insertions, 0 deletions
diff --git a/.github/goreleaser.yml b/.github/goreleaser.yml
new file mode 100644
index 0000000..4993ffb
--- /dev/null
+++ b/.github/goreleaser.yml
@@ -0,0 +1,46 @@
+before:
+ hooks:
+ - go mod tidy
+builds:
+ - env:
+ - CGO_ENABLED=0
+ goos:
+ - linux
+ - windows
+ - darwin
+ - freebsd
+ - openbsd
+ - netbsd
+ goarch:
+ - 386
+ - amd64
+ - arm
+ - arm64
+ binary: "{{ .Env.PROJECT_NAME }}"
+archives:
+ - replacements:
+ darwin: Darwin
+ linux: Linux
+ windows: Windows
+ freebsd: FreeBSD
+ netbsd: NetBSD
+ openbsd: OpenBSD
+ 386: i386
+ amd64: x86_64
+ arm64: aarch64
+ name_template: "{{ .Env.PROJECT_NAME }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
+ format_overrides:
+ - goos: windows
+ format: zip
+ - goos: darwin
+ format: zip
+checksum:
+ name_template: 'checksums.txt'
+snapshot:
+ name_template: "{{ incpatch .Version }}-next"
+changelog:
+ sort: asc
+ filters:
+ exclude:
+ - '^docs:'
+ - '^test:'