Skip to content

Commit 4ae617b

Browse files
committed
add goreleaser
1 parent 3df3ff3 commit 4ae617b

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
/build/
1+
/build/
2+
/dist/
3+
/.goreleaser.env

.goreleaser.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
before:
2+
hooks:
3+
- go mod download
4+
builds:
5+
- env:
6+
- CGO_ENABLED=0
7+
goos:
8+
- linux
9+
- darwin
10+
ldflags:
11+
- -s -w
12+
hooks:
13+
post:
14+
- upx "{{ .Path }}"
15+
archives:
16+
- replacements:
17+
darwin: Darwin
18+
linux: Linux
19+
windows: Windows
20+
386: i386
21+
amd64: x86_64
22+
checksum:
23+
name_template: "checksums.txt"
24+
snapshot:
25+
name_template: "{{ .Tag }}-next"
26+
changelog:
27+
sort: asc
28+
filters:
29+
exclude:
30+
- "^docs:"
31+
- "^test:"

0 commit comments

Comments
 (0)