-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yaml
128 lines (117 loc) · 2.99 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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
env:
- PROJECT_DESCRIPTION=Project helper tries to save time
- PROJECT_HOMEPAGE=https://github.com/nousefreak/projecthelper
- LICENSE=MIT
version: 1
before:
hooks:
- go mod tidy
- ./scripts/manpages.sh
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
checksum:
name_template: 'checksums.txt'
archives:
- format: tar.gz
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
files:
- README.md
- LICENSE
- manpages/*
changelog:
sort: asc
use: github
filters:
exclude:
- "^docs:"
- "^test:"
groups:
- title: Dependency updates
regexp: '^.*?(feat|fix)\(deps\)!?:.+$'
order: 300
- title: "New Features"
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 100
- title: "Security updates"
regexp: '^.*?sec(\([[:word:]]+\))??!?:.+$'
order: 150
- title: "Bug fixes"
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 200
- title: "Documentation updates"
regexp: ^.*?doc(\([[:word:]]+\))??!?:.+$
order: 400
- title: "Build process updates"
regexp: ^.*?build(\([[:word:]]+\))??!?:.+$
order: 400
- title: Other work
order: 9999
brews:
- repository:
owner: nousefreak
name: homebrew-brew
folder: Formula
homepage: "{{ .Env.PROJECT_HOMEPAGE }}"
description: "{{ .Env.PROJECT_DESCRIPTION }}"
license: "{{ .Env.LICENSE }}"
test: |
system "#{bin}/{{ .ProjectName }} help"
dependencies: []
install: |-
bin.install "{{ .ProjectName }}"
extra_install: |-
man1.install "manpages/projecthelper.1.gz"
nfpms:
- file_name_template: "{{ .ConventionalFileName }}"
id: packages
homepage: "{{ .Env.PROJECT_HOMEPAGE }}"
description: "{{ .Env.PROJECT_DESCRIPTION }}"
license: "mit"
maintainer: Dries De Peuter <dries@stenic.io>
vendor: NoUseFreak
bindir: /usr/bin
section: utils
contents:
- src: ./LICENSE
dst: /usr/share/doc/projecthelper/copyright
file_info:
mode: 0644
- src: ./manpages/projecthelper.1.gz
dst: /usr/share/man/man1/projecthelper.1.gz
file_info:
mode: 0644
formats:
- apk
- deb
- rpm
- archlinux
deb:
lintian_overrides:
- statically-linked-binary
- changelog-file-missing-in-native-package
nix:
- repository:
owner: NoUseFreak
name: nix-packages
homepage: "{{ .Env.PROJECT_HOMEPAGE }}"
description: "{{ .Env.PROJECT_DESCRIPTION }}"
license: "mit"
extra_install: |
installManPage ./manpages/projecthelper.1.gz