Print a warning if there's no dists to upload

This commit is contained in:
Sviatoslav Sydorenko 2019-09-12 17:53:53 +02:00
parent e4638127f9
commit 04871990d3
No known key found for this signature in database
GPG key ID: 9345E8FEA89CA455

View file

@ -16,6 +16,18 @@ then
copied your token properly if such an error occurs.
fi
if [[
! -d dist/ ||
"`ls -l dist/*.tar.gz dist/*.whl`" == "total 0"
]]
then
>&2 echo \
[WARNING]: \
It looks like there is no Python distribution packages to \
publish in the '"dist/"' directory. Please verify that they \
are in place should you face this problem.
fi
TWINE_USERNAME="$INPUT_USER" \
TWINE_PASSWORD="$INPUT_PASSWORD" \