summaryrefslogtreecommitdiff
path: root/.github/goreleaser.yml
diff options
context:
space:
mode:
authora1e7cb88 <[email protected]>2021-10-19 19:08:14 +0800
committerKurenai <[email protected]>2021-10-19 19:08:14 +0800
commitffaf5deb45310418424eaf3b9204e129bcc6fa18 (patch)
treef534c1f79eed12c14bc0e2959b7eea2afebe3935 /.github/goreleaser.yml
parent9fd0b9515f53908f85bbb36f1c9063ee1384d55f (diff)
Add workflow config
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:'