Skip to content
Snippets Groups Projects

Resolve "Publish to pypi"

Merged Georg Krause requested to merge 1-publish-to-pypi into main
Files
2
+ 13
0
@@ -7,6 +7,8 @@
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
stages:
- test
- publish
sast:
stage: test
include:
@@ -26,3 +28,14 @@ pytest:
coverage_report:
coverage_format: cobertura
path: coverage.xml
publish:
stage: publish
image: python:3.10-alpine
before_script:
- apk add poetry
- poetry install
script:
- poetry publish --username __token__ --password $PYPI_TOKEN --build
only:
- tags
Loading