diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f4ad68d..938ba86 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,15 +13,16 @@ black: script: - black --check . -# https://github.com/python-gitlab/python-gitlab/blob/master/.gitlab-ci.yml used for reference -deploy: +pypi_release: stage: deploy - image: python:3.8 - before_script: - - pip install twine - - python setup.py sdist - + cache: {} script: - - twine upload dist/* -u __token__ -p $PYPI_TOKEN + - pip install -U twine + - python setup.py sdist bdist_wheel + - twine check dist/* + - twine upload --repository-url https://upload.pypi.org/legacy/ dist/* + - pip install helpdev==$CI_COMMIT_TAG + - helpdev --version + - pip uninstall helpdev -y # only: # - tags