[feat] Add auto-publish to GitLab PyPi [skip ci]
This commit is contained in:
parent
9824463a0f
commit
b6f2ea4ccd
1 changed files with 10 additions and 0 deletions
|
@ -34,3 +34,13 @@ test python3.12:
|
||||||
coverage_report:
|
coverage_report:
|
||||||
coverage_format: cobertura
|
coverage_format: cobertura
|
||||||
path: coverage.xml
|
path: coverage.xml
|
||||||
|
|
||||||
|
release:
|
||||||
|
stage: build
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_TAG
|
||||||
|
script:
|
||||||
|
- pip install poetry
|
||||||
|
- poetry install
|
||||||
|
- source `poetry env info --path`/bin/activate
|
||||||
|
- poetry publish --build -r ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi -u gitlab-ci-token -p ${CI_JOB_TOKEN}
|
||||||
|
|
Loading…
Add table
Reference in a new issue