Skip to content

Commit

Permalink
chore: update GoReleaser to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke authored and squakez committed Jun 17, 2024
1 parent 4e6f77b commit 85e2aa9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: v0.184.0
args: release --rm-dist
version: v2.0.1
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14 changes: 8 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Make sure to check the documentation at http://goreleaser.com
version: 2
before:
hooks:
- go mod download
Expand All @@ -9,12 +10,13 @@ builds:
ldflags: -X github.com/container-tools/spectrum/pkg/util.Version={{ .Tag }}
id: spectrum
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
- name_template: >-
{{- .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down

0 comments on commit 85e2aa9

Please sign in to comment.