-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
68 lines (62 loc) · 1.27 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
58
59
60
61
62
63
64
65
66
67
68
# to test
# docker run -ti -v "$PWD:$PWD" -w "$PWD" goreleaser/goreleaser:latest release --snapshot --rm-dist
project_name: fq
before:
hooks:
- go mod download
release:
draft: true
builds:
- env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
goos:
- linux
- windows
- darwin
flags:
- -trimpath
ldflags:
# omit symbol table and debug information
- -s -w
- -X main.commit={{.Commit}}
- -X main.date={{.CommitDate}}
- -X main.builtBy=goreleaser
checksum:
name_template: "checksums.txt"
archives:
- files:
# skip all other files
- none*
rlcp: true
format_overrides:
- goos: windows
format: zip
- goos: darwin
format: zip
# fq_0.2.0_linux_amd64.tar.gz
# fq_0.2.0_macos_arm64.zip
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- if eq .Os "darwin" }}macos_
{{- else }}{{ .Os }}_{{ end }}
{{- .Arch }}
changelog:
sort: asc
filters:
exclude:
- "^Merge"
brews:
- skip_upload: auto
tap:
owner: wader
name: homebrew-tap
folder: Formula
homepage: https://github.com/wader/fq
description: jq for binary formats
license: MIT
test: |
system "#{bin}/fq -v"