Skip to content

Commit

Permalink
deploy.sh fix build on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
glicht committed Sep 5, 2019
1 parent cb62e28 commit e3d1946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function deploy_to_pypi () {
if [[ "${CIRCLE_BRANCH}" == "master" ]]; then
echo "Deploying to Pypi test site."
TWINE_REPOSITORY_URL=https://test.pypi.org/legacy/ TWINE_PASSWORD="${PYPI_TEST_TOKEN}" deploy_to_pypi
elif [[ $(echo "${CIRCLE_BRANCH}" | grep -E "^v[0-9]+\.[0-9]+\.[0-9]+$") ]]; then
elif [[ $(echo "${CIRCLE_TAG}" | grep -E "^v[0-9]+\.[0-9]+\.[0-9]+$") ]]; then
echo "Deploying to Pypi production site"
TWINE_REPOSITORY_URL=https://test.pypi.org/legacy/ TWINE_PASSWORD="${PYPI_TOKEN}" deploy_to_pypi
else
Expand Down

0 comments on commit e3d1946

Please sign in to comment.