From b9ec8fdc492a5090e7a3c2b5da790e85c19cd457 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 10 Aug 2018 11:12:06 +0200 Subject: [PATCH] Allow to disable draft creation for immediate release Signed-off-by: Knut Ahlers --- golang.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/golang.sh b/golang.sh index 7eba6dd..b167358 100755 --- a/golang.sh +++ b/golang.sh @@ -22,6 +22,7 @@ ARCHS=${ARCHS:-"linux/amd64 linux/arm darwin/amd64 windows/amd64"} DEPLOYMENT_TAG=${DEPLOYMENT_TAG:-${VERSION}} PACKAGES=${PACKAGES:-$(echo ${godir} | cut -d '/' -f 1-3)} BUILD_DIR=${BUILD_DIR:-.build} +DRAFT=${DRAFT:-true} go version @@ -79,7 +80,7 @@ if [ -z "${GITHUB_TOKEN}" ]; then fi step Create a drafted release -github-release release --user ${GHUSER} --repo ${REPO} --tag ${DEPLOYMENT_TAG} --name ${DEPLOYMENT_TAG} --draft || true +github-release release --user ${GHUSER} --repo ${REPO} --tag ${DEPLOYMENT_TAG} --name ${DEPLOYMENT_TAG} --draft=${DRAFT} || true step Upload build assets for file in *; do