Add CI stage to deploy to pypi on tags.

This commit is contained in:
Col Crunch 2020-01-15 23:16:02 -05:00
parent 4d435d58c5
commit 02714956d8

View File

@ -1,5 +1,6 @@
stages: stages:
- "test" - "test"
- deploy
before_script: before_script:
- python -V - python -V
@ -19,3 +20,17 @@ test-3.7:
image: python:3.7-stretch image: python:3.7-stretch
script: script:
- tox -e py37 - tox -e py37
deploy_production:
stage: deploy
image: python:3.6-stretch
before_script:
- pip install twine
script:
- python setup.py sdist
- twine upload dist/*
only:
- tags