Skip to content

Commit c3e92dc

Browse files
committed
Add goreleaser
1 parent 4712487 commit c3e92dc

File tree

2 files changed

+42
-3
lines changed

2 files changed

+42
-3
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
# Output of the go coverage tool, specifically when used with LiteIDE
1212
*.out
1313

14-
# Dependency directories (remove the comment below to include it)
15-
# vendor/
16-
1714
# Go workspace file
1815
go.work
1916

2017
### Go Patch ###
2118
/vendor/
2219
/Godeps/
20+
21+
# GoReleaser
22+
dist/

.goreleaser.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This is an example .goreleaser.yml file with some sensible defaults.
2+
# Make sure to check the documentation at https://goreleaser.com
3+
before:
4+
hooks:
5+
# You may remove this if you don't use go modules.
6+
- go mod tidy
7+
# you may remove this if you don't need go generate
8+
- go generate ./...
9+
builds:
10+
- env:
11+
- CGO_ENABLED=0
12+
goos:
13+
- linux
14+
- windows
15+
- darwin
16+
archives:
17+
- files:
18+
- README.md
19+
- LICENSE
20+
- 'preview.png'
21+
format_overrides:
22+
- goos: windows
23+
format: zip
24+
replacements:
25+
darwin: Darwin
26+
linux: Linux
27+
windows: Windows
28+
386: i386
29+
amd64: x86_64
30+
checksum:
31+
name_template: 'checksums.txt'
32+
snapshot:
33+
name_template: "{{ incpatch .Version }}-next"
34+
changelog:
35+
sort: asc
36+
filters:
37+
exclude:
38+
- '^docs:'
39+
- '^test:'

0 commit comments

Comments
 (0)