-
Notifications
You must be signed in to change notification settings - Fork 6
/
.goreleaser.yml
53 lines (45 loc) · 1.13 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
before:
hooks:
- go mod tidy
builds:
- <<: &build_defaults
main: ./cmd/test-reporter/main.go
binary: "test-reporter"
env:
- CGO_ENABLED=0
ldflags:
- -X main.Version={{.Version}}
- -X main.Commit={{.ShortCommit}}
hooks:
post:
- upx "{{ .Path }}"
id: linux
goos: [linux]
goarch: [amd64, arm64]
- <<: *build_defaults
id: macos
goos: [darwin]
goarch: [amd64, arm64]
- <<: *build_defaults
id: windows
goos: [windows]
goarch: [amd64]
snapshot:
name_template: "SNAPSHOT-{{.ShortCommit}}"
archives:
- id: default
format: binary
name_template: "{{ .Binary }}-{{ .Os }}-{{ .Arch }}"
- id: snake_case # Also offer binaries with snake_case filenames to support the updated URLs implemented in response to the 2021-09-20 GitHub incident (https://twitter.com/BuildPulseApp/status/1440089498566623241)
format: binary
name_template: "test_reporter_{{ .Os }}_{{ .Arch }}"
checksum:
name_template: "checksums.txt"
release:
draft: true
prerelease: auto
changelog:
sort: asc
filters:
exclude:
- "^test:"