Skip to content

Commit a86c07b

Browse files
committed
add goreleaser config
1 parent d11f802 commit a86c07b

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
widdler
22
.htpasswd
3+
dist/

.goreleaser.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
before:
2+
hooks:
3+
- go mod tidy
4+
- go vet
5+
- staticcheck
6+
- gosec .
7+
builds:
8+
- env:
9+
- CGO_ENABLED=0
10+
targets:
11+
- openbsd_amd64
12+
- openbsd_arm64
13+
- openbsd_386
14+
- openbsd_arm
15+
- freebsd_amd64
16+
- freebsd_arm64
17+
- freebsd_386
18+
- darwin_amd64
19+
- darwin_arm64
20+
- windows_amd64
21+
- netbsd_amd64
22+
- netbsd_arm64
23+
- netbsd_386
24+
- dragonfly_amd64
25+
goos:
26+
- openbsd
27+
- freebsd
28+
- netbsd
29+
- dragonfly
30+
- linux
31+
- windows
32+
- darwin
33+
ldflags:
34+
- -s -w -X main.build={{.Version}}
35+
archives:
36+
- replacements:
37+
openbsd: OpenBSD
38+
freebsd: FreeBSD
39+
netbsd: NetBSD
40+
dragonfly: DragonflyBSD
41+
darwin: Darwin
42+
linux: Linux
43+
windows: Windows
44+
386: i386
45+
amd64: x86_64
46+
checksum:
47+
name_template: 'checksums.txt'
48+
snapshot:
49+
name_template: "{{ incpatch .Version }}-next"
50+
changelog:
51+
sort: asc
52+
filters:
53+
exclude:
54+
- '^docs:'
55+
- '^test:'

0 commit comments

Comments
 (0)