Skip to content

Commit

Permalink
[skyapi] refs skycoin#131 upload only release-* branches to skyapi
Browse files Browse the repository at this point in the history
  • Loading branch information
e1Ru1o committed Jul 8, 2019
1 parent e397e2d commit e0e74e6
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .travis/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ make bdist_wheel
if [ $TRAVIS_OS_NAME == "linux" && $TOXENV == "py37" ]; then make bdist_manylinux_amd64 ; fi

# Upload
echo "Upload to testPyPi"
echo "Upload pyskycoin to testPyPi"
twine upload -u pyskycoin -p "prerelease_0.X" --verbose --skip-existing --repository-url https://test.pypi.org/legacy/ dist/*
twine upload -u pyskycoin -p "prerelease_0.X" --verbose --skip-existing --repository-url https://test.pypi.org/legacy/ lib/skyapi/dist/*
# echo "Upload to PyPi"
# twine upload -u $PYPITEST_USER -p $PYPITEST_PWD --repository-url https://upload.pypi.org/legacy/ dist/*
# twine upload -u $PYPITEST_USER -p $PYPITEST_PWD --repository-url https://upload.pypi.org/legacy/ lib/skyapi/dist/*

branch="release-*"
case $TRAVIS_BRANCH in
$branch)
echo "Upload skyapi to testPyPi"
twine upload -u pyskycoin -p "prerelease_0.X" --verbose --skip-existing --repository-url https://test.pypi.org/legacy/ lib/skyapi/dist/*;;
*)
echo "Not a release branch";;
esac

0 comments on commit e0e74e6

Please sign in to comment.