File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ builds:
5555 - -w -X main.Version={{.Version}} -X main.BuildTime={{.Date}}
5656
5757archives :
58- -
58+ - &ARCHIVE
5959 # Can be used to change the archive formats for specific GOOSs.
6060 # Most common use case is to archive as zip on Windows.
6161 # Default is empty.
@@ -71,6 +71,11 @@ archives:
7171 - README.md
7272 - LICENSE
7373 - autocomplete/*
74+ -
75+ << : *ARCHIVE
76+ id : unversioned
77+ name_template : " {{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
78+
7479
7580nfpms :
7681 # Configure nFPM for .deb and .rpm releases
8287 # List file contents: dpkg -c dist/step_...deb
8388 # Package metadata: dpkg --info dist/step_....deb
8489 #
85- -
90+ - &NFPM
8691 builds :
8792 - nfpm
8893 package_name : step-cli
@@ -100,7 +105,6 @@ nfpms:
100105 - deb
101106 - rpm
102107 priority : optional
103-
104108 bindir : /usr/bin
105109 contents :
106110 - src : debian/copyright
@@ -113,6 +117,10 @@ nfpms:
113117 scripts :
114118 postinstall : scripts/postinstall.sh
115119 postremove : scripts/postremove.sh
120+ -
121+ << : *NFPM
122+ id : unversioned
123+ file_name_template : " {{ .PackageName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
116124
117125source :
118126 enabled : true
You can’t perform that action at this time.
0 commit comments