From 0070e43c8a23193f397e014dc5570f879f9ee2c5 Mon Sep 17 00:00:00 2001 From: Vadim Hleif Date: Wed, 8 Aug 2018 11:46:50 +0300 Subject: [PATCH] Add new target for uploading binaries to release (#83) * Add new target for uploading binaries to release --- modules/github/Makefile.release | 8 ++++++++ modules/packages/Makefile | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/github/Makefile.release b/modules/github/Makefile.release index a5a9e2d7..4e72f439 100644 --- a/modules/github/Makefile.release +++ b/modules/github/Makefile.release @@ -19,3 +19,11 @@ github/download-public-release: $(call assert-set,VERSION) $(call assert-set,OUTPUT) $(BUILD_HARNESS_PATH)/bin/github_download_public_release.sh $(VERSION) $(OUTPUT) + +# To use ghr, you need a GitHub API token. +# Please set it via `GITHUB_TOKEN` env var +## Push all release artifacts to GitHub (Required: `GITHUB_TOKEN`) +github/push-artifacts: packages/install/ghr-linux + $(call assert-set,GIT_TAG) + $(call assert-set,ARTIFACTS) + @ghr $(GIT_TAG) $(ARTIFACTS) \ No newline at end of file diff --git a/modules/packages/Makefile b/modules/packages/Makefile index 857c510e..7799e2b8 100644 --- a/modules/packages/Makefile +++ b/modules/packages/Makefile @@ -1,5 +1,5 @@ export INSTALL_PATH ?= $(BUILD_HARNESS_PATH)/vendor -export PACKAGES_VERSION ?= 0.2.1 +export PACKAGES_VERSION ?= 0.4.0 export PACKAGES_PATH ?= $(BUILD_HARNESS_PATH)/vendor/packages ## Delete packages