Commit 23d1a0e5 authored by Marc Feger's avatar Marc Feger
Browse files

Update .gitlab-ci.yml to have a deploy stage for pypi

parent 7de20c46
Pipeline #75033 failed with stages
in 1 minute and 20 seconds
......@@ -6,6 +6,7 @@ services:
stages:
- build
- test
- deploy
before_script:
- docker version
......@@ -33,3 +34,17 @@ test:
- echo "Testing ..."
- docker-compose -f docker-compose.ci.yml pull
- docker-compose -f docker-compose.ci.yml run web sh -c "poetry run python manage.py makemigrations && poetry run python manage.py migrate && poetry run python manage.py test core -v 2"
deploy:
stage: deploy
needs:
- test
script:
- echo "Deploying ..."
- cd ./the_social_network
- mw ./the_social_network ./not_needed
- mw ./core ./the_social_network
- pip install poetry
- poetry --version
- poetry config pypi-token.pypi __token__ $PYPI_TOKEN
- poetry publish
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment