From 2f55d5aa6b401f3cafde93f61199718ace25fddc Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Thu, 23 Apr 2020 23:39:53 -0700 Subject: [PATCH] Add deploying to PyPI when a tag is created --- .gitlab-ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 64495e1a4..ca06b5731 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -70,6 +70,15 @@ test-display: - yarn install - yarn test --browsers ChromiumHeadlessCI +upload-pypi: + stage: deploy + image: openlp/debian + script: + - python3 setup.py sdist bdist_wheel + - twine upload dist/* + only: + - tags + pages: stage: deploy image: openlp/debian