pcgamedb/.goreleaser.yaml
nite07 304517e241
Some checks failed
release / goreleaser (push) Failing after 2m23s
docker / prepare-and-build (push) Failing after 2m55s
trans to private
2024-11-20 19:09:04 +08:00

36 lines
603 B
YAML

project_name: pcgamedb
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 pcgamedb/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