Skip to content

Commit f0995cf

Browse files
committed
Add unversioned release artifacts to build
1 parent 5cad0f7 commit f0995cf

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.goreleaser.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ builds:
5555
- -w -X main.Version={{.Version}} -X main.BuildTime={{.Date}}
5656

5757
archives:
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

7580
nfpms:
7681
# Configure nFPM for .deb and .rpm releases
@@ -82,7 +87,7 @@ nfpms:
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

117125
source:
118126
enabled: true

0 commit comments

Comments
 (0)