Skip to content
Snippets Groups Projects
Commit 9457bd1a authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[ci-pypi] Only build docs if a 'doc' directory exists

parent d3496511
No related branches found
No related tags found
No related merge requests found
......@@ -56,10 +56,12 @@ green_echo "[>>] Uploading first to ${TESTSERVER} on behalf of ${PYPIUSER}..."
setup check sdist --formats zip upload --repository staging
green_echo "[<<] Test finished, proceeding..."
# if that worked, uploads documentation to pythonhosted
green_echo "[>>] Uploading documentation on behalf of ${PYPIUSER}..."
setup upload_docs --upload-dir sphinx
green_echo "[<<] Documentation uploaded, proceeding..."
# if that worked, uploads documentation to pythonhosted if any exists
if [ -d doc ]; then
green_echo "[>>] Uploading documentation on behalf of ${PYPIUSER}..."
setup upload_docs --upload-dir sphinx
green_echo "[<<] Documentation uploaded, proceeding..."
fi
# if that worked, uploads source package to the production index
green_echo "[>>] Uploading package to ${PYPISERVER} on behalf of ${PYPIUSER}..."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment