nezha/.goreleaser.yml
2020-12-13 01:36:25 +08:00

28 lines
535 B
YAML

before:
hooks:
- go get -v -d ./...
- go get -u github.com/StackExchange/wmi
- go get -u github.com/inconshreveable/mousetrap
builds:
- id: nezha-agent
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
main: ./cmd/agent
binary: nezha-agent
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{.ProjectName}}"
archives:
- name_template: "nezha-agent_{{ .Os }}_{{ .Arch }}"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"