diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 200dae1258c938b6d445034e6e93f65f7d0e77da..9ba722b721ec9e52159de51a720b17fe12d5ceb8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -35,12 +35,14 @@ package:
 deploy:
   stage: deploy
   image: $CI_REGISTRY/funkwhale/backend-test-docker:3.10
+  variables:
+    POETRY_PYPI_TOKEN_PYPI=$PYPI_TOKEN
   before_script:
     - poetry install
     - git fetch --tags
   script:
     - poetry version $(git describe --tags --abbrev=0)
     - poetry build
-    - poetry publish --username $PYPI_USERNAME --password $PYPI_TOKEN
+    - poetry publish
   only:
     - tags