Skip to content

Commit 6c02a23

Browse files
committed
add goreleaser
1 parent 74baca8 commit 6c02a23

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.goreleaser.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This is an example .goreleaser.yml 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 tidy
7+
# you may remove this if you don't need go generate
8+
- go generate ./...
9+
builds:
10+
- binary: githubactions-docs
11+
env:
12+
- CGO_ENABLED=0
13+
goos:
14+
- linux
15+
- darwin
16+
ldflags:
17+
- -X github.com/mhristof/githubactions-docs/cmd.version={{ "{{" }}.Version{{ "}}" }}
18+
archives:
19+
- replacements:
20+
darwin: Darwin
21+
linux: Linux
22+
format: binary
23+
checksum:
24+
name_template: 'checksums.txt'
25+
snapshot:
26+
name_template: "{{ "{{" }} incpatch .Tag {{ "}}" }}-next"
27+
changelog:
28+
sort: asc
29+
filters:
30+
exclude:
31+
- '^docs:'
32+
- '^test:'

0 commit comments

Comments
 (0)