-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.goreleaser.yml
40 lines (40 loc) · 1 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
version: 2
builds:
- id: "ssx"
main: "./cmd/ssx"
binary: "ssx"
flags:
- -trimpath
ldflags:
- -s -w
- -X github.com/vimiix/ssx/ssx/version.Version={{.Tag}}
- -X github.com/vimiix/ssx/ssx/version.Revision={{.ShortCommit}}
- -X github.com/vimiix/ssx/ssx/version.BuildDate={{.Date}}
env:
- CGO_ENABLED=0
- GO111MODULE=on
targets:
- linux_amd64
- linux_arm64
- darwin_amd64
- darwin_arm64
- windows_amd64
archives:
- name_template: '{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{- if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{ end }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
snapshot:
name_template: "{{ incpatch .Version }}-preview"
changelog:
use: github
format: "{{.SHA}}: {{.Message}} (@{{.AuthorUsername}})"
filters:
exclude:
- "^docs:"
- "^chore:"
- (?i)Merge pull request