From e3d19460a67223057d0a776cfdd923c656f07aff Mon Sep 17 00:00:00 2001 From: Guy Lichtman <1395797+glicht@users.noreply.github.com> Date: Thu, 5 Sep 2019 23:57:58 +0300 Subject: [PATCH] deploy.sh fix build on tag --- deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 81275c6..3960979 100755 --- a/deploy.sh +++ b/deploy.sh @@ -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