1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-26 07:13:24 +03:00

Do not upload when no file

This commit is contained in:
Tae Won Ha 2019-04-28 10:16:06 +02:00
parent ef67669c16
commit 6cb1ce8317
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

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