Skip to content
Snippets Groups Projects
Commit 4c1648f1 authored by Max Drexler's avatar Max Drexler
Browse files

Update .gitlab-ci.yml file

parent cf9ff3e4
No related branches found
No related tags found
No related merge requests found
Pipeline #53753 passed
......@@ -86,24 +86,17 @@ test::unit:
coverage_format: cobertura
path: ./coverage.xml
coverage: /(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/
deploy::build:
package::release:
stage: deploy
extends: .on-new-version
before_script:
pip install build
pip install twine build
script:
- python -m build
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi --verbose dist/*
artifacts:
expire_in: "1 day"
paths:
- ./dist/*.whl
- ./dist/*.tar.gz
deploy::package::release:
stage: deploy
extends: .on-new-version
before_script:
pip install twine
script:
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi --verbose dist/*
- ./dist/*.tar.gz
\ No newline at end of file
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