-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.goreleaser.yaml
138 lines (128 loc) · 3.32 KB
/
.goreleaser.yaml
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
env:
- GO111MODULE=auto
before:
hooks:
- go mod tidy
- go generate ./...
- ./scripts/completions.sh
- ./scripts/manpages.sh
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- "386"
- amd64
- arm
- arm64
goarm:
- "7"
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags:
- -s -w
universal_binaries:
- replace: false
checksum:
name_template: "checksums.txt"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^chore:"
- "^Merge pull request"
- "^Merge branch"
archives:
- name_template: >-
{{ .ProjectName }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip
files:
- README.md
- LICENSE
- completions/*
- manpages/*
brews:
- tap:
owner: thazelart
name: homebrew-tap
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
goarm: "7"
homepage: https://github.com/thazelart/golang-cli-template
description: A Golang cli template.
license: Apache 2.0
test: |
system "#{bin}/golang-cli-template version"
dependencies:
- name: go
type: optional
install: |-
bin.install "golang-cli-template"
bash_completion.install "completions/golang-cli-template.bash" => "golang-cli-template"
zsh_completion.install "completions/golang-cli-template.zsh" => "_golang-cli-template"
fish_completion.install "completions/golang-cli-template.fish"
man1.install "manpages/golang-cli-template.1.gz"
nfpms:
- file_name_template: "{{ .ConventionalFileName }}"
id: packages
homepage: https://github.com/thazelart/golang-cli-template
description: A Golang cli template.
maintainer: Thibault HAZELART <thazelart@gmail.com>
license: Apache 2.0
vendor: thazelart
bindir: /usr/bin
section: utils
contents:
- src: ./completions/golang-cli-template.bash
dst: /usr/share/bash-completion/completions/golang-cli-template
file_info:
mode: 0644
- src: ./completions/golang-cli-template.fish
dst: /usr/share/fish/vendor_completions.d/golang-cli-template.fish
file_info:
mode: 0644
- src: ./completions/golang-cli-template.zsh
dst: /usr/share/zsh/vendor-completions/_golang-cli-template
file_info:
mode: 0644
- src: ./manpages/golang-cli-template.1.gz
dst: /usr/share/man/man1/golang-cli-template.1.gz
file_info:
mode: 0644
- src: ./LICENSE
dst: /usr/share/doc/golang-cli-template/copyright
file_info:
mode: 0644
formats:
- apk
- deb
- rpm
- archlinux
recommends:
- golang
deb:
lintian_overrides:
- statically-linked-binary
- changelog-file-missing-in-native-package
publishers:
- name: fury.io
ids:
- packages
env:
- "FURY_TOKEN={{ .Env.FURY_TOKEN }}"
cmd: ./scripts/fury-upload.sh {{ .ArtifactName }}
release:
footer: |
**Full Changelog**: https://github.com/thazelart/golang-cli-template/compare/{{ .PreviousTag }}...{{ .Tag }}