mirror of
https://github.com/pypa/gh-action-pypi-publish.git
synced 2024-11-22 00:21:08 -05:00
Print a warning if there's no dists to upload
This commit is contained in:
parent
e4638127f9
commit
04871990d3
1 changed files with 12 additions and 0 deletions
|
@ -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" \
|
||||
|
|
Loading…
Reference in a new issue