diff --git a/metamate/Makefile b/metamate/Makefile index a23ebcc..74fce88 100644 --- a/metamate/Makefile +++ b/metamate/Makefile @@ -5,4 +5,7 @@ build: @${SOURCE_MAKE} && build chore: - @${SOURCE_MAKE} && chore \ No newline at end of file + @${SOURCE_MAKE} && chore + +release: + @${SOURCE_MAKE} && release \ No newline at end of file diff --git a/metamate/make/.goreleaser.yml b/metamate/make/.goreleaser.yml new file mode 100644 index 0000000..23f0b3e --- /dev/null +++ b/metamate/make/.goreleaser.yml @@ -0,0 +1,27 @@ +project_name: metamate +before: + hooks: + - go mod download +builds: +- main: ./cmd/metamate/main.go + env: + - CGO_ENABLED=0 +archives: +- replacements: + darwin: Darwin + linux: Linux + windows: Windows + 386: i386 + amd64: x86_64 +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ .Tag }}" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' + - Merge pull request + - Merge branch \ No newline at end of file diff --git a/metamate/make/make.sh b/metamate/make/make.sh index d0c8dcf..535d847 100644 --- a/metamate/make/make.sh +++ b/metamate/make/make.sh @@ -11,4 +11,8 @@ function chore { go fmt ./... go vet ./... golint ./... +} + +function release { + goreleaser release --rm-dist -f make/.goreleaser.yml } \ No newline at end of file