-
Notifications
You must be signed in to change notification settings - Fork 5
/
.goreleaser.yaml
105 lines (101 loc) · 2.72 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
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
project_name: aidoku-cli
release:
prerelease: auto
draft: false
name_template: "aidoku-cli v{{.Version}}"
before:
hooks:
- go mod tidy
- sh ./scripts/completions
builds:
- main: ./cmd/aidoku
binary: aidoku
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
hooks:
post:
- rice append -i ./cmd/aidoku/cmd -i ./internal/templates -i ./internal/build --exec "{{ .Path }}"
ldflags: |
-s -w
-X github.com/Aidoku/aidoku-cli/cmd/aidoku/cmd.version={{.Version}}
-X github.com/Aidoku/aidoku-cli/cmd/aidoku/cmd.commit={{.FullCommit}}
-X github.com/Aidoku/aidoku-cli/cmd/aidoku/cmd.date={{.Date}}
-X github.com/Aidoku/aidoku-cli/cmd/aidoku/cmd.builtBy=goreleaser
archives:
- replacements:
darwin: macos
386: i386
amd64: x86_64
wrap_in_directory: 'false'
format: tar.gz
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
brews:
- tap:
owner: beerpiss
name: homebrew-tap
folder: Formula
homepage: https://github.com/Aidoku/aidoku-cli
description: Aidoku development toolkit
commit_msg_template: "{{.ProjectName}}: Update to version {{.Tag}}"
license: 0BSD
install: |
bin.install "aidoku"
(bash_completion/"aidoku").write `#{bin}/aidoku completion bash`
(zsh_completion/"_aidoku").write `#{bin}/aidoku completion zsh`
(fish_completion/"aidoku.fish").write `#{bin}/aidoku completion fish`
test: |
system "#{bin}/aidoku --version"
changelog:
sort: asc
use: github
groups:
- title: "New features"
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: "Bug fixes"
regexp: "^.*fix[(\\w)]*:+.*$"
order: 10
- title: Other work
order: 999
filters:
exclude:
- '^docs:'
- '^test:'
- '^chore:'
- '^ci:'
- Merge pull request
- Merge remote-tracking branch
- Merge branch
- go mod tidy
nfpms:
- license: 0BSD
maintainer: beerpsi <[email protected]>
homepage: https://github.com/Aidoku/aidoku-cli
bindir: /usr/bin
description: Aidoku development toolkit
formats:
- deb
- rpm
- apk
contents:
- src: completions/_bash
dst: /usr/share/bash-completion/completions/aidoku
- src: completions/_zsh
dst: /usr/share/zsh/site-functions/_aidoku
- src: completions/_fish
dst: /usr/share/fish/vendor_completions.d/aidoku.fish