Skip to content
Snippets Groups Projects
Commit e4772dfe authored by Bryan Brancotte's avatar Bryan Brancotte
Browse files

upload to pypi

parent 40d33aae
No related branches found
No related tags found
No related merge requests found
Pipeline #13176 failed with stages
in 1 minute and 17 seconds
......@@ -32,3 +32,18 @@ upload:
- sed -i "s/v0.0.1-dev/$CI_COMMIT_TAG/g" src/__init__.py
- python -m build
- python -m twine upload --verbose --repository-url ${PRIVATE_REGISTRY_API_URL} dist/*
upload-to-pypi:
extends: upload
variables:
PRIVATE_REGISTRY_API_URL: "https://pypi.org"
TWINE_PASSWORD: "${PYPI_TOKEN_PASSWORD}"
TWINE_USERNAME: "__token__"
before_script:
- >
if [[ -z "$TWINE_PASSWORD" ]]; then
echo "No token provided, cannot upload"
exit 1
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment