Commit f27924ac authored by Elisabetta Giani's avatar Elisabetta Giani
Browse files

TestPipeline: Modified the script to upload the python package.

parent 5c2ba672
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -136,7 +136,8 @@ linting:csp-lmc-common:
    - cat $TESTPIPRC  > /tmp/.pypirc
    - echo $CSP_TOKEN
    - echo $CI_API_V4_URL
    - twine upload --repository gitlab --config-file /tmp/.pypirc --verbose $(ls -d ./dist/*.whl | grep $CI_COMMIT_SHORT_SHA)
    - python setup.py sdist bdist_wheel    
    - TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/pypi dist/*

.publish_python_release_common:
  extends: .publish_python_common