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: ...@@ -86,24 +86,17 @@ test::unit:
coverage_format: cobertura coverage_format: cobertura
path: ./coverage.xml path: ./coverage.xml
coverage: /(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/ coverage: /(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/
deploy::build: package::release:
stage: deploy stage: deploy
extends: .on-new-version extends: .on-new-version
before_script: before_script:
pip install build pip install twine build
script: script:
- python -m build - 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: artifacts:
expire_in: "1 day" expire_in: "1 day"
paths: paths:
- ./dist/*.whl - ./dist/*.whl
- ./dist/*.tar.gz - ./dist/*.tar.gz
\ No newline at end of file
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/*
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