-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
124 lines (124 loc) · 3.93 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
version: 2
project_name: changelog-generator
before:
hooks:
- go mod download
- go run ./internal/generate/completions --date={{ .CommitDate }}
- go run ./internal/generate/manpages --version={{ .Version }} --date={{ .CommitDate }}
builds:
- env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -s
- -w
- -X main.version={{.Version}}
goarch:
- amd64
- arm64
mod_timestamp: "{{.CommitTimestamp}}"
archives:
- formats: tar.gz
# use zip for windows archives
format_overrides:
- goos: windows
formats: zip
files:
- LICENSE
- README.md
- manpages/*
- completions/*
checksum:
name_template: "checksums.txt"
snapshot:
version_template: "{{ incpatch .Version }}-beta"
changelog:
sort: asc
filters:
exclude:
- '^docs'
- '^test'
groups:
- title: Features
order: 0
regexp: "(feat)"
- title: Fixes
order: 1
regexp: "(fix|perf)"
- title: Dependencies
order: 999
regexp: '\(deps\):'
- title: Others
order: 998
brews:
- homepage: https://github.com/gabe565/changelog-generator
description: Generates a changelog from commits since the previous release.
license: MIT
repository:
owner: gabe565
name: homebrew-tap
directory: Formula
install: |
bin.install "changelog-generator"
man1.install "manpages/changelog-generator.1.gz"
bash_completion.install "completions/changelog-generator.bash" => "changelog-generator"
zsh_completion.install "completions/changelog-generator.zsh" => "_changelog-generator"
fish_completion.install "completions/changelog-generator.fish"
nfpms:
- id: packages
vendor: Gabe Cook
homepage: https://github.com/gabe565/changelog-generator
description: Generates a changelog from commits since the previous release.
license: MIT
maintainer: Gabe Cook <[email protected]>
formats:
- deb
- rpm
contents:
- src: ./manpages/
dst: /usr/share/man/man1
file_info:
mode: 0644
- src: ./completions/changelog-generator.bash
dst: /usr/share/bash-completion/completions/changelog-generator
file_info:
mode: 0644
- src: ./completions/changelog-generator.fish
dst: /usr/share/fish/vendor_completions.d/changelog-generator.fish
file_info:
mode: 0644
- src: ./completions/changelog-generator.zsh
dst: /usr/share/zsh/vendor-completions/_changelog-generator
file_info:
mode: 0644
publishers:
- name: fury.io
ids:
- packages
dir: "{{ dir .ArtifactPath }}"
cmd: curl -sf -Fpackage=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/gabe565/
aurs:
- name: changelog-generator-bin
homepage: https://github.com/gabe565/changelog-generator
description: Generates a changelog from commits since the previous release.
maintainers:
- Gabe Cook <[email protected]>
license: MIT
private_key: '{{ .Env.AUR_SSH_KEY }}'
git_url: ssh://[email protected]/changelog-generator-bin.git
skip_upload: auto
package: |-
# bin
install -Dm755 "./changelog-generator" "${pkgdir}/usr/bin/changelog-generator"
# license
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/changelog-generator/LICENSE"
# man pages
install -Dm644 "./manpages/changelog-generator.1.gz" "${pkgdir}/usr/share/man/man1/changelog-generator.1.gz"
# completions
install -Dm644 "./completions/changelog-generator.bash" "${pkgdir}/usr/share/bash-completion/completions/changelog-generator"
install -Dm644 "./completions/changelog-generator.zsh" "${pkgdir}/usr/share/zsh/site-functions/_changelog-generator"
install -Dm644 "./completions/changelog-generator.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/changelog-generator.fish"
commit_author:
name: goreleaserbot
email: [email protected]