diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index addcdce430a0491ddb2ce8a6af435dde12e41409..35ef8deb90429db020162279befa27caaaae3a3e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,3 +5,13 @@ test_job: script: - pip install -r requirements.txt - python -m unittest tests/coords_test.py + + +deploy_job: + stage: deploy + tags: + - intro-docker + script: + - pip install twine + - python setup.py sdist bdist_wheel + - TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url https://www.ict.inaf.it/gitlab/api/v4/projects/${CI_PROJECT_ID}/packages/pypi dist/*