mirror of
https://github.com/Luzifer/github-publish.git
synced 2024-11-09 23:00:14 +00:00
Allow to disable draft creation for immediate release
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
7a013ac669
commit
b9ec8fdc49
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue