ci/cd: 新增流水线自动打包

YANGJINZE 2025-05-15 12:25:43 +08:00 committed by GitHub
parent cd451ba0a8
commit 1eb25c7b55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 31 additions and 0 deletions

31
.goreleaser.yml Normal file
View File

@ -0,0 +1,31 @@
# .goreleaser.yml
version: 2
release:
disable: false
archives:
- format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- LICENSE
- README.md
- config.yaml
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- "386"
- amd64
- arm
- arm64
- ppc64
goarm:
- "7"
ignore:
- goos: windows
goarch: arm