-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
41 lines (34 loc) · 1.07 KB
/
.goreleaser.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
project_name: "sample-go-cli-project"
# 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
before:
hooks:
# Remove unused packaged from the build process
- go mod tidy
- go generate
signs:
- artifacts: all
args: ["--batch", "-u", "{{ .Env.GPG_FINGERPRINT }}", "--output", "${signature}", "--detach-sign", "${artifact}"]
builds:
- main: ./main.go
binary: sample-go-cli-project
goos: ["linux", "darwin", "windows"]
goarch: ["386", "amd64", "arm64"]
ldflags:
- -s -w -X "github.com/conijnio/sample-go-cli-project/cmd.version={{.Version}}"
env:
- CGO_ENABLED=0
nfpms:
- package_name: sample-go-cli-project
homepage: https://github.com/conijnio/sample-go-cli-project/
maintainer: Joris Conijn <[email protected]>
description: |-
Template for golang projects
formats:
- rpm
- deb
sboms:
- artifacts: archive
changelog:
sort: "asc"
filters:
exclude: ["^docs:", "demo", "^hugo:", "Merge pull request", "Merge branch"]