Skip to content

Commit

Permalink
fix: goreleaser deprecates --rm-dist and archives.replacements (jeess…
Browse files Browse the repository at this point in the history
…y2#514)

* fix(goreleaser): --rm-dist deprecated

See: https://goreleaser.com/deprecations/#-rm-dist

* fix(goreleaser): archives.replacements deprecated

See: https://goreleaser.com/deprecations/#archivesreplacements
  • Loading branch information
WaterLemons2k authored Feb 3, 2023
1 parent de34311 commit 5908db3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20 changes: 14 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,20 @@ builds:
ldflags:
- -s -w -X main.version={{.Tag}} -X main.buildTime={{.Date}}
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
# use zip for windows archives
- format_overrides:
- goos: windows
format: zip
# this name template makes the OS and Arch compatible with the results of uname.
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Mips }}_{{ .Mips }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down

0 comments on commit 5908db3

Please sign in to comment.