Skip to content
Snippets Groups Projects
Commit e164a0cd authored by Manon Blanco's avatar Manon Blanco
Browse files

Publish on the GitLab package registry

parent 98f6b78c
No related branches found
No related tags found
1 merge request!344Publish on the GitLab package registry
...@@ -149,6 +149,25 @@ docs-stop-surge: ...@@ -149,6 +149,25 @@ docs-stop-surge:
script: script:
- surge teardown ${CI_ENVIRONMENT_URL} - surge teardown ${CI_ENVIRONMENT_URL}
deploy-pypi:
stage: deploy
image: python:3.10
only:
- tags
variables:
TWINE_USERNAME: gitlab-ci-token
TWINE_PASSWORD: ${CI_JOB_TOKEN}
TWINE_REPOSITORY_URL: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi
before_script:
- pip install twine
script:
- python setup.py sdist bdist_wheel
- twine upload --repository-url ${TWINE_REPOSITORY_URL} dist/*
bump-python-deps: bump-python-deps:
stage: deploy stage: deploy
image: registry.gitlab.teklia.com/infra/devops:latest image: registry.gitlab.teklia.com/infra/devops:latest
......
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