Commit 4cdd1d39 authored by Simon Chabot's avatar Simon Chabot
Browse files

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

parent 1f094cc9bc79
Pipeline #64050 passed with stage
in 22 seconds
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/*
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