-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
96 lines (89 loc) · 2.2 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
84
85
86
87
88
89
90
91
92
93
94
95
96
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
env:
- CGO_ENABLED=0
- GOFLAGS=-mod=vendor
- GO111MODULE=auto
builds:
- id: binary
goos:
- darwin
- linux
goarch:
- amd64
- arm
- arm64
- 386
goarm:
- 6
- 7
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.buildSource=binaryRelease
- id: win_binary
goos:
- windows
goarch:
- amd64
- arm
- arm64
- 386
goarm:
- 6
- 7
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.buildSource=binaryRelease
- id: msi
goos:
- windows
goarch:
- amd64
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.buildSource=binaryRelease
hooks:
post: go-msi make --msi dist/jsonte-{{.Version}}.msi --version {{.Version}} --src .\templates --out .\go-msi-tmp
archives:
- builds:
- binary
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}x86
{{- else }}{{ .Arch }}{{ end }}
{{- if eq .Arch "arm" }}-{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip
- builds:
- win_binary
id: win_binary
format: zip
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}x86
{{- else }}{{ .Arch }}{{ end }}
{{- if eq .Arch "arm" }}-{{ .Arm }}{{ end }}
files:
- src: scripts/jsonte-update.ps1
dst: ./
strip_parent: true
checksum:
name_template: "checksums.txt"
snapshot:
version_template: "{{ incpatch .Tag }}"
changelog:
filters:
exclude:
# For excluding docs related commits
- '^docs:'
# For excluding configuration related commits
- '^config:'
# For excluding small typo commits
- '^typo:'
# For excluding dependencies related commits
- '^dep:'
sort: asc
release:
extra_files:
- glob: "./**/jsonte-*.msi"