Skip to content

Commit 91e3a55

Browse files
Create .goreleaser.yaml
Signed-off-by: Bruno Schaatsbergen <[email protected]>
1 parent 5e6cac3 commit 91e3a55

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.goreleaser.yaml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
project_name: "zns"
2+
3+
# before are hooks that will be run before any builds are done, so good to put install scripts and stuff that your builds need here
4+
before:
5+
hooks:
6+
# Remove unused packaged from the build process
7+
- go mod tidy
8+
- go generate
9+
10+
builds:
11+
- main: ./main.go
12+
binary: zns
13+
goos: ["linux", "darwin", "windows"]
14+
goarch: ["386", "amd64", "arm64"]
15+
ldflags:
16+
- -s -w -X "github.com/znscli/zns/cmd.version={{.Version}}"
17+
env:
18+
- CGO_ENABLED=0
19+
20+
changelog:
21+
sort: "asc"
22+
filters:
23+
exclude: ["^docs:", "demo", "^hugo:", "Merge pull request", "Merge branch"]
24+
25+
brews:
26+
- tap:
27+
owner: znscli
28+
name: homebrew
29+
name: zns
30+
homepage: "https://github.com/znscli/zns"
31+
description: "Foobar"
32+
license: "MIT"
33+
skip_upload: auto
34+
commit_author:
35+
name: Bruno Schaatsbergen
36+
37+
folder: Formula
38+
install: |-
39+
bin.install "zns"
40+
test: |
41+
system "#{bin}/zns -v"
42+

0 commit comments

Comments
 (0)