From 99d4e62630e4204d9932638ecbc72da9d263e5c1 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.anjos@idiap.ch> Date: Thu, 20 Oct 2016 14:53:21 +0200 Subject: [PATCH] Swap doc/package deployment order so it works for new packages --- gitlab/deploy.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gitlab/deploy.sh b/gitlab/deploy.sh index 1429525..9ad085c 100755 --- a/gitlab/deploy.sh +++ b/gitlab/deploy.sh @@ -8,15 +8,15 @@ lock_pypirc setup_deploy register --repository staging setup_deploy check sdist --formats zip upload --repository staging +# if that worked, uploads source package to the production index +log_info "Uploading package to ${PYPISERVER} on behalf of ${PYPIUSER}..." +setup_deploy register --repository production +setup_deploy check sdist --formats zip upload --repository production + # if that worked, uploads documentation to pythonhosted if any exists if [ -d sphinx ]; then log_info "Uploading documentation to ${PYPISERVER} on behalf of ${PYPIUSER}..." setup_deploy upload_docs --upload-dir sphinx --repository production fi -# if that worked, uploads source package to the production index -log_info "Uploading package to ${PYPISERVER} on behalf of ${PYPIUSER}..." -setup_deploy register --repository production -setup_deploy check sdist --formats zip upload --repository production - unlock_pypirc -- GitLab