Skip to content

Commit a48d968

Browse files
committed
v0.0.1
1 parent ce90c31 commit a48d968

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ VERSION ?= $(shell git describe --tags --always --dirty)
88
GOPKGS = $(shell go list ./... | grep -v /vendor/)
99
BUILD_FLAGS ?=
1010
LDFLAGS ?= -X github.com/grepplabs/kafka-proxy/config.Version=$(VERSION) -w -s
11+
TAG ?= "v0.0.1"
1112

1213
PLATFORM ?= $(shell uname -s)
1314
ifeq ($(PLATFORM), Darwin)
@@ -68,6 +69,13 @@ build.docker-build.osx:
6869
docker rm $$buildContainer ;\
6970
docker rmi $$buildContainerName ;\
7071

72+
release: clean build.linux build/osx/$(BINARY)
73+
git tag $(TAG) && git push --tags
74+
github-release release -u grepplabs -r $(BINARY) --tag $(TAG)
75+
github-release upload -u grepplabs -r $(BINARY) -t $(TAG) -f build/linux/$(BINARY) -n linux/amd64/$(BINARY)
76+
github-release upload -u grepplabs -r $(BINARY) -t $(TAG) -f build/osx/$(BINARY) -n darwin/amd64/$(BINARY)
77+
github-release info -u grepplabs -r $(BINARY)
78+
7179
protoc.auth:
7280
protoc -I plugin/auth/proto/ plugin/auth/proto/auth.proto --go_out=plugins=grpc:plugin/auth/proto/
7381

0 commit comments

Comments
 (0)