]> git.r.bdr.sh - rbdr/mobius/blob - .goreleaser.yaml
4dc6f910fd5dc3d6428c7626e2a88b962a0addb5
[rbdr/mobius] / .goreleaser.yaml
1 version: 1
2
3 before:
4 hooks:
5 - go mod tidy
6
7 builds:
8 - env:
9 - CGO_ENABLED=0
10 goarch:
11 - amd64
12 - arm
13 - arm64
14 goos:
15 - linux
16 - windows
17 - darwin
18
19 archives:
20 - format: tar.gz
21 # this name template makes the OS and Arch compatible with the results of `uname`.
22 name_template: >-
23 {{ .ProjectName }}_
24 {{- title .Os }}_
25 {{- if eq .Arch "amd64" }}x86_64
26 {{- else if eq .Arch "386" }}i386
27 {{- else }}{{ .Arch }}{{ end }}
28 {{- if .Arm }}v{{ .Arm }}{{ end }}
29 # use zip for windows archives
30 format_overrides:
31 - goos: windows
32 format: zip
33
34 changelog:
35 sort: asc
36 filters:
37 exclude:
38 - "^docs:"
39 - "^test:"