generated from orangekame3/cobra-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
52 lines (52 loc) · 1.08 KB
/
.goreleaser.yml
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
# .goreleaser.yml
version: 2
# Before section
before:
hooks:
# Ensure go modules are tidy
- go mod tidy
# Optionally, run go generate if needed
- go generate ./...
# Builds section
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
# Add additional build configurations as needed
# Archives section
archives:
- id: tar_gz
format: tar.gz
# Customize archive name based on OS and Arch
name_template: >-
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}
- id: zip
format: zip
# Format override for Windows
name_template: >-
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}
# Checksum section
checksum:
name_template: "checksums.txt"
# Snapshot section
snapshot:
name_template: "{{ incpatch .Version }}-next"
# Changelog section
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
# Brews section (if applicable)
brews:
-
ids:
- tar_gz
repository:
owner: orangekame3
name: homebrew-tap
token: "{{ .Env.TAP_GITHUB_TOKEN }}"