Skip to content

Commit

Permalink
Update goreleaser to remove deprecated configs
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisWiegman committed Jul 8, 2023
1 parent 9c2ffe2 commit cc7c20e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
21 changes: 14 additions & 7 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@ archives:
- macos
- linux
format: zip
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
replacements:
amd64: x86_64
darwin: macos
name_template: >-
{{ .ProjectName }}_
{{- if eq .Os "darwin" }}macos
{{- else }}{{ .Os }}{{ end }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
files:
- LICENSE.txt
- CHANGELOG.md
Expand All @@ -53,16 +56,20 @@ nfpms:
homepage: https://github.com/ChrisWiegman/gh-backup
maintainer: Chris Wiegman <[email protected]>
description: A simple CLI utility, written in GoLang, to backup all of your public GitHub repos.
replacements:
amd64: x86_64
file_name_template: >-
{{ .ProjectName }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
formats:
- apk
- deb
- rpm
- archlinux

brews:
- tap:
- repository:
owner: ChrisWiegman
name: homebrew-gh-backup
branch: main
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ snapshot:
-w /go/src/$(PKG) \
goreleaser/goreleaser \
release \
--rm-dist \
--clean \
--release-notes=./.changes/$(VERSION).md \
--snapshot

Expand Down

0 comments on commit cc7c20e

Please sign in to comment.