diff --git a/.travis.yml b/.travis.yml index 84de12ec..a2014ae3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -145,9 +145,8 @@ deploy: - provider: script script: bash .travis/skyapi_deploy.sh on: - branches: - only: - - /^release-.*$/ + all_branches: true tags: true repo: skycoin/pyskycoin + condition: $TRAVIS_BRANCH =~ "^release-.*$" # TODO: Upload manylinux wheels to PyPI diff --git a/.travis/skyapi_deploy.sh b/.travis/skyapi_deploy.sh index 7589e907..bb439cc6 100755 --- a/.travis/skyapi_deploy.sh +++ b/.travis/skyapi_deploy.sh @@ -2,5 +2,6 @@ echo "Installing twine" python -m pip install twine -echo "Upload to testPyPI" -twine upload -u pyskycoin -p "prerelease_0.X" --skip-existing --repository-url https://test.pypi.org/legacy/ lib/skyapi/dist/* +#Upload to PyPi +echo "Upload to PyPI" +twine upload -u $PYPI_USER -p $PYPI_PASSWD --repository-url https://upload.pypi.org/legacy/ lib/skyapi/dist/*