1
0
Fork 0
mirror of https://github.com/Luzifer/github-publish.git synced 2024-12-20 09:51:22 +00:00

Allow to disable draft creation for immediate release

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-08-10 11:12:06 +02:00
parent 7a013ac669
commit b9ec8fdc49
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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