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:
parent
ef67669c16
commit
6cb1ce8317
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user