Skip to content

Commit

Permalink
Merge pull request #17 from suzuki-shunsuke/fix-release
Browse files Browse the repository at this point in the history
chore: update GoReleaser to release assets for darwin/arm64 and windows/arm64
  • Loading branch information
makew0rld authored Dec 21, 2023
2 parents 409cfa6 + 347e4f2 commit 5e8316f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: 0.x
version: v1.22.1
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 9 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,15 @@ builds:

archives:
- format: binary
replacements:
darwin: macOS
386: 32-bit
amd64: 64-bit
name_template: >-
{{- .ProjectName }}_
{{- .Version }}_
{{- if eq .Os "darwin" }}macOS
{{- else }}{{ .Os }}{{ end }}_
{{- if eq .Arch "amd64" }}64-bit
{{- else if eq .Arch "386" }}32-bit
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
milestones:
- close: true
Expand Down

0 comments on commit 5e8316f

Please sign in to comment.