Skip to content

Commit 12a7e7c

Browse files
committed
add a basic goreleaser cfg
1 parent 1b4712b commit 12a7e7c

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
_exe/
2+
dist/

.goreleaser.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Make sure to check the documentation at http://goreleaser.com
2+
before:
3+
hooks:
4+
- go mod tidy
5+
- go generate ./...
6+
builds:
7+
- env:
8+
- CGO_ENABLED=0
9+
goos:
10+
- freebsd
11+
- windows
12+
- linux
13+
- darwin
14+
archives:
15+
- replacements:
16+
darwin: Darwin
17+
linux: Linux
18+
windows: Windows
19+
386: i386
20+
amd64: x86_64
21+
checksum:
22+
name_template: 'checksums.txt'
23+
snapshot:
24+
name_template: "{{ .Tag }}"
25+
changelog:
26+
sort: asc
27+
filters:
28+
exclude:
29+
- '^docs:'
30+
- '^test:'
31+
nfpms:
32+
-
33+
replacements:
34+
amd64: x86_64
35+
386: i386
36+
vendor: "Liquid Web LLC"
37+
license: "Apache 2"
38+
homepage: "https://liquidweb.com"
39+
description: "LiquidWeb command line client"
40+
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
41+
formats:
42+
- rpm
43+
- deb
44+
bindir: "/usr/local/bin"

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,7 @@ build:
2424
run:
2525
go run main.go $(call args,)
2626

27+
release-build:
28+
goreleaser --snapshot --skip-publish --rm-dist
29+
2730
.PHONY: clean static all build run

0 commit comments

Comments
 (0)