Skip to content

Commit

Permalink
added tag requirement in .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyod committed Nov 23, 2018
1 parent 43b3bc4 commit ea10666
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ before_script:
# If a tag was used, build wheels and deply to pypi
script:
- echo "$TRAVIS_TAG"
- $PIP install cibuildwheel;
- if [ -n "$TRAVIS_TAG" ]; then
$PIP install cibuildwheel;
$PYTHON -m cibuildwheel --output-dir wheelhouse;
$PIP install twine;
$PYTHON -m twine upload dist/* -u tommyod -p $TWINE_PASSWORD --skip-existing;
fi

0 comments on commit ea10666

Please sign in to comment.