From c80417f45ece8dc7581bb476b5d9285d7b420ca2 Mon Sep 17 00:00:00 2001 From: Anson Biggs Date: Mon, 20 Jan 2020 21:13:45 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) 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