Skip to content

Commit 547a3e9

Browse files
committed
adding goreleaser
1 parent 73061b9 commit 547a3e9

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@
1616
data/
1717
examples/
1818

19+
20+
dist/

.goreleaser.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
ignore:
17+
- goarch: '386'
18+
archives:
19+
- replacements:
20+
darwin: Darwin
21+
linux: Linux
22+
windows: Windows
23+
386: i386
24+
amd64: x86_64
25+
checksum:
26+
name_template: 'checksums.txt'
27+
snapshot:
28+
name_template: "{{ incpatch .Version }}-next"
29+
changelog:
30+
sort: asc
31+
filters:
32+
exclude:
33+
- '^docs:'
34+
- '^test:'
35+
36+
# modelines, feel free to remove those if you don't want/use them:
37+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
38+
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

0 commit comments

Comments
 (0)