mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 12:30:15 +02:00
Add CI stage to deploy to pypi on tags.
This commit is contained in:
parent
4d435d58c5
commit
02714956d8
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user