release v0.0.1

master v0.0.1
ehlxr 2019-11-05 16:18:20 +08:00
parent 6a0babd70e
commit 7c38410537
2 changed files with 18 additions and 0 deletions

17
Makefile Normal file
View File

@ -0,0 +1,17 @@
BUILD_VERSION := $(shell cat version)
.PHONY : release
release:
ifneq ($(shell type ghr >/dev/null 2>&1;echo $$?), 0)
@echo "Can't find ghr command, will start installation..."
GO111MODULE=off go get -v -u github.com/tcnksm/ghr
endif
ghr -u ehlxr -t $(GITHUB_RELEASE_TOKEN) -replace -delete --debug ${BUILD_VERSION}
# this tells 'make' to export all variables to child processes by default.
.EXPORT_ALL_VARIABLES:
GO111MODULE = on
GOPROXY = https://goproxy.cn,direct
GOSUMDB = sum.golang.google.cn

1
version Normal file
View File

@ -0,0 +1 @@
v0.0.1