-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy path.goreleaser.yml
More file actions
58 lines (50 loc) · 1.07 KB
/
.goreleaser.yml
File metadata and controls
58 lines (50 loc) · 1.07 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
50
51
52
53
54
55
56
57
58
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
before:
hooks:
- go mod tidy
- go generate ./...
# Extract changelog section for this version and save to file
- bash -c './scripts/extract-changelog.sh $(git describe --tags --abbrev=0) > .release-notes.md'
builds:
- main: .
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm
- arm64
- 386
goarm:
- 6
- 7
ignore:
- goos: darwin
goarch: 386
- goos: windows
goarch: arm
archives:
- formats: ['binary']
name_template: >-
{{ .ProjectName }}-
{{- .Tag }}-
{{- if eq .Os "darwin" }}macos
{{- else }}{{ .Os }}{{ end }}-
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}{{ .Arm }}{{ end }}
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
release:
footer: >-
---
To update, run: `gitplm -update`