Commit 277332f2 authored by Stephen Thompson's avatar Stephen Thompson

Issue #1 added deploy to pypi stage

parent cb713c68
Pipeline #1095 canceled with stages
in 1 minute and 14 seconds
......@@ -107,3 +107,33 @@ deploy docs to production:
- public
dependencies:
- build docs
deploy pip to PyPI:
stage: deploy
when: manual
# only:
# - tags
environment:
name: PyPI
url: https://test.pypi.python.org/pypi/sckit-surgerynditracker
tags:
- pip-production
artifacts:
paths:
- dist/
script:
# Install packages required to build/publish
# remove any previous distribution files
- pip install wheel twine setuptools
- rm -rf dist
# bundle installer
- python setup.py bdist_wheel
# Upload to pypi
- twine upload -repository-url https://test.pypi.org/legacy/ dist/* --username $PYPI_TEST_USER --password $PYPI_TEST_PASS
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment