mirror of https://gitee.com/answerdev/answer.git
58 lines
1.0 KiB
YAML
58 lines
1.0 KiB
YAML
env:
|
|
- GO11MODULE=on
|
|
- GO111MODULE=on
|
|
- GOPROXY=https://goproxy.io
|
|
- CGO_ENABLED=0
|
|
|
|
before:
|
|
hooks:
|
|
- go mod tidy
|
|
|
|
release:
|
|
draft: true
|
|
|
|
builds:
|
|
- id: build
|
|
main: ./cmd/answer/.
|
|
binary: answer
|
|
ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser
|
|
flags: -v
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
- id: build-windows
|
|
main: ./cmd/answer/.
|
|
binary: answer
|
|
ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser
|
|
flags: -v
|
|
goos:
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
|
|
|
|
|
|
|
|
archives:
|
|
- replacements:
|
|
darwin: macOS
|
|
amd64: x86_64
|
|
linux: Linux
|
|
windows: Windows
|
|
checksum:
|
|
name_template: 'checksums.txt'
|
|
snapshot:
|
|
name_template: "{{ incpatch .Version }}"
|
|
changelog:
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- '^docs:'
|
|
- '^test:'
|
|
|
|
# goreleaser release --snapshot --rm-dist
|
|
|