Skip to content

Commit

Permalink
修改打包目标架构
Browse files Browse the repository at this point in the history
  • Loading branch information
wangYX657211334 committed Oct 31, 2024
1 parent acc4d83 commit 0b9a78b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ jobs:
- name: Go release
uses: goreleaser/goreleaser-action@v6
with:
args: release --clean
args: --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ builds:
- linux
- windows
- darwin
goarch:
- amd64

archives:
- format: tar.gz
Expand All @@ -33,7 +35,6 @@ archives:
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
Expand Down

0 comments on commit 0b9a78b

Please sign in to comment.