Browse Source

chore: update GoReleaser to release assets for darwin/arm64 and windows/arm64

pull/17/head
Shunsuke Suzuki 2 years ago
parent
commit
347e4f28ff
No known key found for this signature in database
GPG Key ID: 8C1396BBB3626865
  1. 2
      .github/workflows/goreleaser.yml
  2. 13
      .goreleaser.yml

2
.github/workflows/goreleaser.yml

@ -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
.goreleaser.yml

@ -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

Loading…
Cancel
Save