-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yml
83 lines (74 loc) · 1.79 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: 2
project_name: "spok"
before:
hooks:
- go install golang.org/x/tools/cmd/stringer@latest
- go mod tidy
- go generate ./...
- go fmt ./...
builds:
- id: "spok"
dir: "."
main: "./cmd/spok"
binary: "spok"
ldflags:
- -s -w
- -X github.com/FollowTheProcess/spok/cli/cmd.version={{.Version}}
- -X github.com/FollowTheProcess/spok/cli/cmd.commit={{.Commit}}
- -X github.com/FollowTheProcess/spok/cli/cmd.buildDate={{.Date}}
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- "386"
- amd64
- arm64
goarm:
- "7"
brews:
- repository:
owner: "FollowTheProcess"
name: homebrew-tap
token: "{{.Env.HOMEBREW_TAP_TOKEN}}"
goarm: "7"
directory: Formula
commit_author:
name: "Tom Fleet"
email: "[email protected]"
homepage: "https://github.com/FollowTheProcess/spok"
description: "It's a build system Jim, but not as we know it!"
license: "Apache Software License 2.0"
install: |
bin.install "spok"
test: |
"#{bin}/spok --version"
archives:
- id: spok
name_template: >-
{{ .ProjectName }}-
{{- .Version }}-
{{- .Os }}-
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
sboms:
- id: spok
artifacts: archive
documents:
- >-
{{ .ProjectName }}-
{{- .Version}}-
{{- .Os }}-
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}.sbom
checksum:
name_template: "checksums.txt"
snapshot:
version_template: "{{ .Tag }}-dev{{ .ShortCommit }}"
changelog:
# The changelog is handled by release drafter
disable: true