Commit 07b836f3 authored by Claas Faber's avatar Claas Faber
Browse files

Update .gitlab-ci.yml file

parent 7a0c27bb
Pipeline #73739 passed with stages
in 1 minute and 5 seconds
image: python:slim
variables:
TWINE_PASSWORD: ${CI_JOB_TOKEN}
TWINE_USERNAME: gitlab-ci-token
TWINE_REPO_URL: https://gitlab.hzdr.de/api/v4/projects/${CI_PROJECT_ID}/packages/pypi
stages:
- build
- deploy
......@@ -30,3 +37,11 @@ pages:
- public
only:
- master
upload_package:
stage: deploy
script:
- pip install twine
- python setup.py bdist_wheel
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url https://gitlab.hzdr.de/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