一键脚本

This commit is contained in:
naiba
2020-11-29 22:17:40 +08:00
parent e31943144a
commit 7fdf323c05
13 changed files with 464 additions and 184 deletions

22
.goreleaser.yml Normal file
View File

@@ -0,0 +1,22 @@
before:
hooks:
- go mod tidy -v
builds:
- id: nezha-agent
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
main: ./cmd/agent
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"