diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 39ac2860086af2425141227baab26f79524d18e5..16d750c2343a3032e489a8566c77a24bb169204f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -30,9 +30,10 @@ pytest:
         path: coverage.xml
 
 publish:
+  stage: publish
   image: python:3.10-alpine
   before_script:
     - apk add poetry
     - poetry install
   script:
-    - poetry publish --build
+    - poetry publish --username __token__ --password $PYPI_TOKEN --build