diff --git a/.goreleaser.yml b/.goreleaser.yml index 8c07ef1e9..4041dc12c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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. @@ -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 @@ -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 @@ -100,7 +105,6 @@ nfpms: - deb - rpm priority: optional - bindir: /usr/bin contents: - src: debian/copyright @@ -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