Commit 4ae0d52e authored by Leo Pound Singer's avatar Leo Pound Singer
Browse files

Use PyPI API tokens instead of username and password

parent ef6ebea5
......@@ -192,13 +192,14 @@ pages:
dependencies:
- test/python3.7
# Upload package to PyPI
# Upload package to PyPI.
# Place your PyPI API token in the repository's GitLab CI secrets.
pypi:
stage: deploy
image: python:slim
script:
- pip install twine
- twine upload *.tar.* *.whl
- twine upload --username __token__ --password $PYPI_API_TOKEN *.tar.* *.whl
dependencies:
- sdist
- bdist
......
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