nezha/.goreleaser.yml
2020-12-21 19:14:50 +08:00

48 lines
835 B
YAML

before:
hooks:
- go mod tidy -v
builds:
- id: nezha-agent
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- 386
- arm
- mips
- mips64
ignore:
- goos: darwin
goarch: 386
- goos: darwin
goarch: arm
- goos: darwin
goarch: mips
- goos: darwin
goarch: mips64
- goos: windows
goarch: arm
- goos: windows
goarch: mips
- goos: windows
goarch: mips64
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:"