-
Notifications
You must be signed in to change notification settings - Fork 120
/
.goreleaser.yml
57 lines (48 loc) · 1.07 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
53
54
55
56
57
hooks:
- name: "go mod tidy"
command: "go mod tidy"
comment: "Tidy Go modules"
- name: "lint"
command: "golint ./..."
comment: "Run code quality checks"
- name: "test"
command: "go test ./..."
comment: "Run tests"
- name: "build"
command: "go build"
comment: "Build the application"
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
comment: "Build for Linux amd64"
- env:
- CGO_ENABLED=0
goos:
- darwin
goarch:
- amd64
comment: "Build for macOS amd64"
archives:
- replacements:
darwin: Darwin
linux: Linux
386: i386
amd64: x86_64
comment: "Archives replacements for different platforms"
checksum:
name_template: 'checksums.txt'
comment: "Name template for checksums"
snapshot:
name_template: "{{ .Version }}-{{ now | date '20060102T150405' }}-next"
comment: "Snapshot name template with version and timestamp"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
comment: "Changelog configuration"