From 7c384105373f9594c3856e64f7ed04a96e183d82 Mon Sep 17 00:00:00 2001 From: ehlxr Date: Tue, 5 Nov 2019 16:18:20 +0800 Subject: [PATCH] release v0.0.1 --- Makefile | 17 +++++++++++++++++ version | 1 + 2 files changed, 18 insertions(+) create mode 100644 Makefile create mode 100644 version diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c9fc9b4 --- /dev/null +++ b/Makefile @@ -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 diff --git a/version b/version new file mode 100644 index 0000000..95e94cd --- /dev/null +++ b/version @@ -0,0 +1 @@ +v0.0.1 \ No newline at end of file