From a34cc5acde0849c1b8967151065ba12c3f31a209 Mon Sep 17 00:00:00 2001 From: Dimitrij Denissenko Date: Wed, 2 Oct 2019 15:17:02 +0100 Subject: [PATCH] Add release task --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index c0d7d8a..bddbf36 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +GITHUB_TOKEN:=$(shell sed ':a;N;$!ba;s/\n/ /g' ~/.netrc | grep -Po 'machine *github.com *login *\w+' | grep -Po '\w+$$') + default: test test: @@ -5,6 +7,9 @@ test: .PHONY: default test +release: + GITHUB_TOKEN=$(GITHUB_TOKEN) goreleaser --rm-dist + # proto --------------------------------------------------------------- proto: rpc.go