Skip to content

Commit

Permalink
Add unversioned release artifacts to build
Browse files Browse the repository at this point in the history
  • Loading branch information
tashian committed Jun 14, 2023
1 parent 5cad0f7 commit f0995cf
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ builds:
- -w -X main.Version={{.Version}} -X main.BuildTime={{.Date}}

archives:
-
- &ARCHIVE
# Can be used to change the archive formats for specific GOOSs.
# Most common use case is to archive as zip on Windows.
# Default is empty.
Expand All @@ -71,6 +71,11 @@ archives:
- README.md
- LICENSE
- autocomplete/*
-
<< : *ARCHIVE
id: unversioned
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"


nfpms:
# Configure nFPM for .deb and .rpm releases
Expand All @@ -82,7 +87,7 @@ nfpms:
# List file contents: dpkg -c dist/step_...deb
# Package metadata: dpkg --info dist/step_....deb
#
-
- &NFPM
builds:
- nfpm
package_name: step-cli
Expand All @@ -100,7 +105,6 @@ nfpms:
- deb
- rpm
priority: optional

bindir: /usr/bin
contents:
- src: debian/copyright
Expand All @@ -113,6 +117,10 @@ nfpms:
scripts:
postinstall: scripts/postinstall.sh
postremove: scripts/postremove.sh
-
<< : *NFPM
id: unversioned
file_name_template: "{{ .PackageName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"

source:
enabled: true
Expand Down

0 comments on commit f0995cf

Please sign in to comment.