game-crawler/.goreleaser.yaml
2024-12-26 21:09:00 +08:00

39 lines
695 B
YAML

project_name: game-crawler
before:
hooks:
- go install github.com/swaggo/swag/cmd/swag@latest
- swag init
builds:
- env:
- CGO_ENABLED=0
goos:
- windows
- linux
- darwin
goarch:
- amd64
- arm64
- arm
- "386"
ldflags:
- -s -w -X game-crawler/constant.Version={{ .Version }}
flags:
- -trimpath
archives:
- format: tar.gz
format_overrides:
- format: zip
goos: windows
wrap_in_directory: true
files:
- LICENSE
- README.md
release:
draft: true
upx:
- enabled: true
compress: best
gitea_urls:
api: https://git.nite07.com/api/v1
download: https://git.nite07.com