Skip to content

Commit

Permalink
Only deploy to pypi from one build per tag
Browse files Browse the repository at this point in the history
All python versions produce the same deployment, so can only run the
deploy once.
  • Loading branch information
braedon committed Feb 5, 2019
1 parent 51cea4a commit 8837c3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ python:
- "3.6"
script:
- python setup.py test
after_success:
- if [[ $TRAVIS_PYTHON_VERSION == 3.6* ]]; then export RELEASE_SENTINEL=1; fi
deploy:
provider: pypi
user: $PYPI_USERNAME
password: $PYPI_PASSWORD
distributions: "sdist bdist_wheel"
on:
tags: true
branch: master
condition: $RELEASE_SENTINEL = 1

0 comments on commit 8837c3f

Please sign in to comment.