-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
49 lines (44 loc) · 1.11 KB
/
Copy path.goreleaser.yaml
File metadata and controls
49 lines (44 loc) · 1.11 KB
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
# GoReleaser configuration for oh-my-graph.
#
# The version string is injected at link time into main.Version, which is why
# cmd/oh-my-graph/version.go declares Version as a var: -X can only write to a
# package-level string variable, not a constant.
version: 2
before:
hooks:
- go mod tidy
builds:
- id: oh-my-graph
main: ./cmd/oh-my-graph
binary: oh-my-graph
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
goarch:
- amd64
- arm64
ldflags:
- -s -w -X main.Version={{.Version}}
archives:
- id: oh-my-graph
formats:
- tar.gz
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- .Arch }}
files:
- README.md
- LICENSE
- CHANGELOG.md
checksum:
name_template: checksums.txt
# No `changelog:` block: the release body is supplied by
# `scripts/release-notes.sh` through `--release-notes`, which makes goreleaser
# skip its own changelog generation entirely. A filter list here would be dead
# config that reads as if it still shaped the release page, and would drift.
changelog:
disable: true