From 6cb1ce8317256ee61646155bebdb074e764e8935 Mon Sep 17 00:00:00 2001 From: Tae Won Ha Date: Sun, 28 Apr 2019 10:16:06 +0200 Subject: [PATCH] Do not upload when no file --- bin/create_github_release.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/create_github_release.sh b/bin/create_github_release.sh index 37a81e2d..3dc60a84 100755 --- a/bin/create_github_release.sh +++ b/bin/create_github_release.sh @@ -19,7 +19,7 @@ echo "IS_SNAPSHOT: ${IS_SNAPSHOT}" pushd build/Build/Products/Release echo "### Creating release" -if [ "${IS_SNAPSHOT}" = true ] ; then +if [[ "${IS_SNAPSHOT}" = true ]] ; then GITHUB_TOKEN="${TOKEN}" github-release release \ --user qvacua \ --repo vimr \ @@ -36,6 +36,10 @@ else --description "${RELEASE_NOTES}" fi +if [[ -z "${VIMR_FILE_NAME}" ]]; then + echo "No file to upload; exiting..." + exit 0 +fi echo "### Uploading build" GITHUB_TOKEN="${TOKEN}" github-release upload \