diff --git a/.goreleaser.yml b/.goreleaser.yml index 603139d..c468a73 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,15 +1,27 @@ +before: + hooks: + - go mod tidy builds: - - binary: greeter - ldflags: - - -s -w - env: + - env: - CGO_ENABLED=0 + binary: greeter + ldflags: + - -s -w goos: - linux goarch: - amd64 -archive: - format: tar.gz - files: +archives: +- files: - LICENSE - README.md +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ .Tag }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' diff --git a/Makefile b/Makefile index 5aa841e..abf03ac 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ install: CGO_ENABLED=0 GOOS=linux go install -a -v -o ${OUT} ${PKG} snapshot: - goreleaser --snapshot --rm-dist + goreleaser --snapshot --skip-publish --rm-dist dist: goreleaser --rm-dist