Skip to content

Commit

Permalink
Update goreleaser config to be compatible with latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
jftuga committed Sep 30, 2023
1 parent 8eaa4d6 commit 251c543
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ jobs:
uses: goreleaser/goreleaser-action@master
with:
version: latest
args: release --rm-dist -p 2
args: release --clean -p 2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 9 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,18 @@ builds:

archives:
-
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
name_template: >-
{{- .ProjectName }}_
{{- .Version }}_
{{- if eq .Os "darwin" }}macos
{{- else }}{{ .Os}}{{ end }}_
{{- .Arch }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
{{- if .Mips }}_{{ .Mips }}{{ end }}
format: tar.xz
format_overrides:
- goos: windows
format: zip
replacements:
darwin: MacOS
linux: Linux
freebsd: FreeBSD
windows: Windows
amd64: x86_64
wrap_in_directory: true
files:
- LICENSE
Expand All @@ -93,8 +94,7 @@ archives:
- docker_build_image.sh
- docker_start_gofwd.sh
- Dockerfile
- ssl/


checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}--checksums.txt"
release:
Expand Down

0 comments on commit 251c543

Please sign in to comment.