Skip to content
Snippets Groups Projects
Commit 4cdd1d393a40 authored by Simon Chabot's avatar Simon Chabot
Browse files

feat: add a template to publish python package to heptapod registry

parent 1f094cc9bc79
No related branches found
No related tags found
1 merge request!9feat: add a template to publish python package to heptapod registry
Pipeline #64050 passed
upload-python-package-to-heptapod:
stage: publish
image: python
rules:
- if: '$CI_MERGE_REQUEST_ID'
when: never
- if: '$CI_COMMIT_TAG'
when: on_success
before_script:
- pip install twine
script:
- python setup.py sdist bdist_wheel
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url https://forge.extranet.logilab.fr/api/v4/projects/${CI_PROJECT_ID}/packages/pypi dist/*
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