generated from golang-templates/seed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
61 lines (60 loc) · 1.35 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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
before:
hooks:
- go mod download
- go install golang.org/x/tools/cmd/stringer@latest
- go generate ./...
builds:
- ldflags:
- -s -w -X {{.ModulePath}}/cmd.Version={{.Summary}} -X {{.ModulePath}}/cmd.Date={{.Date}}
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- "386"
- amd64
- arm
- arm64
ignore:
- goos: darwin
goarch: "386"
- goos: darwin
goarch: arm
archives:
- format: tgz
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86-64
{{- else if eq .Arch "arm" }}arm-v6
{{- else if eq .Arch "arm64" }}arm-v8
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch}}{{ end }}
format_overrides:
- goos: windows
format: zip
files:
- info:
mtime: "{{ .CommitDate }}"
- src: CHANGELOG*
dst: docs
- src: README*
dst: docs
- src: LICENSE*
dst: docs
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next-{{ .Now.Format \"0102-150405\" }}"
changelog:
disable: true
release:
github:
owner: asphaltbuffet
name: wherehouse
prerelease: auto
announce:
skip: 'true'