Skip to content

Commit 1bffb95

Browse files
committed
Add goreleaser
1 parent 4b4c63a commit 1bffb95

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@
1515
# Dependency directories (remove the comment below to include it)
1616
# vendor/
1717

18-
shelf.bin
18+
shelf.bin
19+
dist

.goreleaser.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This is an example goreleaser.yaml file with some sane defaults.
2+
# Make sure to check the documentation at http://goreleaser.com
3+
before:
4+
hooks:
5+
# You may remove this if you don't use go modules.
6+
- go mod download
7+
builds:
8+
- env:
9+
- CGO_ENABLED=0
10+
goos:
11+
- freebsd
12+
- linux
13+
- darwin
14+
goarch:
15+
- amd64
16+
- arm
17+
- arm64
18+
goarm:
19+
- 6
20+
- 7
21+
main: ./cmd/shelf/
22+
archives:
23+
- replacements:
24+
darwin: Darwin
25+
linux: Linux
26+
freebsd: FreeBSD
27+
386: i386
28+
amd64: x86_64
29+
arm: arm
30+
arm64: arm64
31+
checksum:
32+
name_template: 'checksums.txt'
33+
snapshot:
34+
name_template: "{{ .Tag }}-next"
35+
changelog:
36+
sort: asc
37+
filters:
38+
exclude:
39+
- '^docs:'
40+
- '^test:'

0 commit comments

Comments
 (0)