-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
59 lines (52 loc) · 1.09 KB
/
.goreleaser.yaml
File metadata and controls
59 lines (52 loc) · 1.09 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: 2
project_name: ccx
release:
prerelease: auto
name_template: "v{{.Version}}"
draft: false
mode: "keep-existing"
before:
hooks:
- go mod tidy
- go test ./...
builds:
- <<: &build_defaults
binary: ccx
main: ./cmd/ccx
ldflags:
- -s -w
- -X main.version={{.Version}}
- -X main.buildTime={{.Date}}
env:
- CGO_ENABLED=0
id: macos
goos: [darwin]
goarch: [amd64, arm64]
- <<: *build_defaults
id: linux
goos: [linux]
goarch: [amd64, arm64]
archives:
- id: nix
ids: [macos, linux]
name_template: >-
{{ .ProjectName }}_{{ .Version }}_{{- if eq .Os "darwin" }}macOS{{- else }}{{ .Os }}{{- end }}_{{- if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{- end }}
wrap_in_directory: true
formats: [tar.gz]
files:
- LICENSE
- README.md
checksum:
name_template: 'checksums.txt'
algorithm: sha256
changelog:
use: github
sort: asc
filters:
exclude:
- '^docs:'
- '^chore:'
- '^ci:'
- '^test:'
- Merge pull request
- Merge branch