+10
-99
.goreleaser.yaml
+10
-99
.goreleaser.yaml
···
8
8
- task gen:manpage
9
9
10
10
builds:
11
-
- id: storm-linux-amd64
12
-
main: ./cmd
13
-
binary: storm
14
-
env:
15
-
- CGO_ENABLED=0
16
-
goos:
17
-
- linux
18
-
goarch:
19
-
- amd64
20
-
21
-
- id: storm-linux-arm64
22
-
main: ./cmd
23
-
binary: storm
24
-
env:
25
-
- CGO_ENABLED=0
26
-
goos:
27
-
- linux
28
-
goarch:
29
-
- arm64
30
-
31
-
- id: storm-linux-386
11
+
- id: storm
32
12
main: ./cmd
33
13
binary: storm
34
14
env:
35
15
- CGO_ENABLED=0
36
-
goos:
37
-
- linux
38
-
goarch:
39
-
- "386"
40
-
41
-
- id: storm-windows-amd64
42
-
main: ./cmd
43
-
binary: storm.exe
44
-
env:
45
-
- CGO_ENABLED=0
46
-
goos:
47
-
- windows
48
-
goarch:
49
-
- amd64
50
-
51
-
- id: storm-windows-arm64
52
-
main: ./cmd
53
-
binary: storm.exe
54
-
env:
55
-
- CGO_ENABLED=0
56
-
goos:
57
-
- windows
58
-
goarch:
59
-
- arm64
60
-
61
-
- id: storm-windows-386
62
-
main: ./cmd
63
-
binary: storm.exe
64
-
env:
65
-
- CGO_ENABLED=0
66
-
goos:
67
-
- windows
68
-
goarch:
69
-
- "386"
70
-
71
-
- id: storm-darwin-amd64
72
-
main: ./cmd
73
-
binary: storm
74
-
env:
75
-
- CGO_ENABLED=0
76
-
goos:
77
-
- darwin
78
-
goarch:
79
-
- amd64
80
-
81
-
- id: storm-darwin-arm64
82
-
main: ./cmd
83
-
binary: storm
84
-
env:
85
-
- CGO_ENABLED=0
86
-
goos:
87
-
- darwin
88
-
goarch:
89
-
- arm64
16
+
goos: [linux, darwin, windows]
17
+
goarch: [amd64, arm64, "386"]
90
18
91
19
archives:
92
20
- id: default
93
-
ids:
94
-
- storm-linux-amd64
95
-
- storm-linux-arm64
96
-
- storm-linux-386
97
-
- storm-windows-amd64
98
-
- storm-windows-arm64
99
-
- storm-windows-386
100
-
- storm-darwin-amd64
101
-
- storm-darwin-arm64
102
-
formats:
103
-
- tar.gz
21
+
formats: [tar.gz]
104
22
name_template: >-
105
23
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}
106
24
format_overrides:
107
25
- goos: windows
108
-
formats:
109
-
- zip
110
-
111
-
- id: extras
112
-
meta: true
113
-
ids:
114
-
- storm-linux-amd64
115
-
name_template: >-
116
-
{{ .ProjectName }}_{{ .Version }}_extras
26
+
formats: [zip]
27
+
# 👇 this is the important part
117
28
files:
118
-
- "dist/completions/*"
119
-
- "dist/manpages/*"
29
+
- completions/**
30
+
- manpages/**
31
+
# the `**` ensures recursive inclusion from project root
120
32
121
33
changelog:
122
34
sort: asc
···
150
62
bash: completions/storm.bash
151
63
zsh: completions/storm.zsh
152
64
fish: completions/storm.fish
153
-
directory: casks
65
+
directory: Casks
154
66
commit_msg_template: "Brew cask update for Storm version {{ .Tag }}"
155
67
skip_upload: false
156
68
ids:
157
69
- default
158
-
- extras
+6
-10
Taskfile.yml
+6
-10
Taskfile.yml
···
97
97
gen:completions:
98
98
desc: Generate shell completion files
99
99
cmds:
100
-
- mkdir -p dist/completions
100
+
- rm -rf completions
101
+
- mkdir -p completions
101
102
- for sh in bash zsh fish; do
102
-
go run ./cmd completion "$sh" > dist/completions/storm."$sh";
103
+
go run ./cmd completion "$sh" > completions/storm."$sh";
103
104
done
104
-
generates:
105
-
- "dist/completions/storm.bash"
106
-
- "dist/completions/storm.zsh"
107
-
- "dist/completions/storm.fish"
108
105
109
106
gen:manpage:
110
107
desc: Generate man page file
111
108
cmds:
112
-
- mkdir -p dist/manpages
113
-
- go run ./cmd man > dist/manpages/storm.1
114
-
generates:
115
-
- "dist/manpages/storm.1"
109
+
- rm -rf manpages
110
+
- mkdir -p manpages
111
+
- go run ./cmd man > manpages/storm.1