Skip to content

Commit 21f4c21

Browse files
committed
feat: migrate rest of goreleaser config
1 parent 4e0b746 commit 21f4c21

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

.goreleaser.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
version: 2
2+
23
env:
3-
- GO111MODULE=on
44
- CGO_ENABLED=0
5+
56
before:
67
hooks:
78
- go mod tidy
9+
810
builds:
911
- binary: duf
1012
flags:
@@ -25,11 +27,25 @@ builds:
2527
goarm:
2628
- 6
2729
- 7
30+
ignore:
31+
- goos: windows
32+
goarm: "6"
33+
- goos: windows
34+
goarm: "7"
2835

2936
archives:
3037
- format_overrides:
3138
- goos: windows
3239
formats: ['zip']
40+
name_template: >-
41+
{{- .ProjectName }}_
42+
{{- .Os }}_
43+
{{- if eq .Arch "amd64" }}x86_64
44+
{{- else if eq .Arch "386" }}i386
45+
{{- else }}{{ .Arch }}{{ end }}
46+
{{- if .Arm }}v{{ .Arm }}{{ end -}}
47+
files:
48+
- duf.1
3349

3450
nfpms:
3551
- ids:
@@ -54,7 +70,9 @@ homebrew_casks:
5470
5571
homepage: "https://fribbledom.com/"
5672
description: "Disk Usage/Free Utility"
57-
# skip_upload: true
73+
manpages:
74+
- duf.1
75+
skip_upload: true
5876

5977
signs:
6078
- artifacts: checksum

0 commit comments

Comments
 (0)