Skip to content
Snippets Groups Projects

[CI] Publish to PyPi

Merged Tom Teichler requested to merge ci-config into master
+ 14
0
@@ -17,3 +17,17 @@ docker:
--destination natureshadow/gibihm:latest
--cache=true
--cleanup
dist:
interruptible: true
stage: build
variables:
POETRY_PYPI_TOKEN_PYPI: "$PYPI_PUBLISH_TOKEN"
script:
- if ! [ "$(poetry version | cut -d" " -f2)" = $CI_COMMIT_REF_NAME ]; then
echo "Package version does not match tag. Aborting build of tag!" >/dev/fd/2 ;
exit 1 ;
fi
- poetry publish
only:
- tags
Loading