Commit 56cbd4bb authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add PyPI upload job

parent abe8454a
Loading
Loading
Loading
Loading
Loading
+18 −1
Original line number Diff line number Diff line
@@ -115,7 +115,7 @@ Check Tag:
    END


Upload Package:
Upload Package (Test):
  stage: deploy
  extends: [.python]
  needs: ["Build Package"]
@@ -132,6 +132,23 @@ Upload Package:
    dist/*


Upload Package (PyPI):
  stage: deploy
  extends: [.python]
  needs: ["Build Package"]
  rules:
  - if: $PYPI_TOKEN && $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$$/
    when: manual
  script:
  - pip install twine
  - TWINE_USERNAME=__token__
    TWINE_PASSWORD=$PYPI_TOKEN
    twine upload
    --verbose
    --non-interactive
    dist/*


Documentation:
  stage: build
  extends: [.python]