-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
48 lines (42 loc) · 1005 Bytes
/
.goreleaser.yaml
File metadata and controls
48 lines (42 loc) · 1005 Bytes
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
# GoReleaser configuration for Spirit
# See https://goreleaser.com for documentation.
version: 2
builds:
- id: spirit
main: ./cmd/spirit
binary: spirit
env:
- CGO_ENABLED=0
ldflags:
- -X main.version={{.Tag}} -X main.commit={{.Commit}} -X main.date={{.Date}}
goos:
- linux
- darwin
goarch:
- amd64
- arm64
# Only build the combinations we want:
# linux/amd64, linux/arm64, darwin/arm64
ignore:
- goos: darwin
goarch: amd64
archives:
- id: spirit
builds:
- spirit
format: tar.gz
name_template: "spirit_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
release:
# If a release already exists for the tag, replace its assets
# rather than failing. This handles the case where a release
# is created via the GitHub UI before the workflow runs.
mode: replace
checksum:
name_template: "checksums.txt"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^ci:"