diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4dd2f54..f376611 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,11 +1,17 @@ -before_script: - - python -V # Print out python version for debugging - - pip install setuptools wheel +stages: + - deploy +# https://github.com/python-gitlab/python-gitlab/blob/master/.gitlab-ci.yml used for reference +deploy: + stage: deploy + image: python:3.8 + + before_script: + - python -V # Print out python version for debugging + - pip install -U setuptools wheel twine -run: script: - python setup.py bdist_wheel - - python -m twine upload dist/* - - echo __token__ - - echo $PYPI_TOKEN + - twine upload --skip-existing -u __token__ -p $PYPI_TOKEN dist dist/* + only: + - tags