diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 5a66aaa..98162aa 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -23,11 +23,17 @@ builds: - windows - darwin +gomod: + proxy: true + env: + - GOPROXY=proxy.golang.org + mod: mod + archives: - format: tar.gz # this name template makes the OS and Arch compatible with the results of `uname`. name_template: >- - {{ .ProjectName }}_ {{- title .Os }}_ {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} {{- if .Arm }}v{{ .Arm }}{{ end }} + {{ .ProjectName }}_{{- title .Os }}_{{- if eq .Arch "amd64" }}x86_64{{- else if eq .Arch "386" }}i386{{- else }}{{ .Arch }}{{ end }}{{- if .Arm }}v{{ .Arm }}{{ end }} # use zip for windows archives format_overrides: - goos: windows diff --git a/Makefile b/Makefile index 6d2f132..ba0ad2a 100644 --- a/Makefile +++ b/Makefile @@ -24,5 +24,8 @@ clean: rm -rf $(BUILD_DIR) +release: + goreleaser release --clean + test: go test ./...