Skip to content

Commit

Permalink
Move tag deploy to a stage
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuald committed Mar 1, 2019
1 parent 385becd commit e6e2774
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,16 @@ jobs:
script:
- black --check -S src

# Deploy to pypi on tagged commit
deploy:
- provider: pypi
user: $PYPI_USERNAME
password: $PYPI_PASSWORD
on:
tags: true
# Deploy to pypi on tagged commit
- stage: deploy
if: tag IS present
python: "3.6"
install: skip
script: skip
deploy:
- provider: pypi
user: $PYPI_USERNAME
password: $PYPI_PASSWORD
distributions: sdist
on:
tags: true

0 comments on commit e6e2774

Please sign in to comment.