From 40114966ca958e7ce6757822824970ebff52a1fc Mon Sep 17 00:00:00 2001 From: Anson Date: Mon, 20 Jan 2020 17:48:13 -0700 Subject: [PATCH] gitlab forums solution --- .gitlab-ci.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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