Skip to content

Commit

Permalink
Set twine upload only for valid tags
Browse files Browse the repository at this point in the history
  • Loading branch information
gbdlin committed May 2, 2019
1 parent fee4267 commit 418e08c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ upload:pypi:
- setuptools
script:
- "twine upload dist/* -u $PYPI_USER -p $PYPI_PASSWORD"
only:
- '/^v(\d+!)?\d+(\.\d+)*((a|b|rc)\d+)?(\.post\d+)?(\.dev\d+)?$/'
except:
- branches
dependencies:
- build:sdist
- build:wheel

0 comments on commit 418e08c

Please sign in to comment.