diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cc94ad1a0f71582c7c58732ef1bc3f2cbea8d5bb..1744e2fb511593e82ae1c5ecdba364998cfc4d2a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -90,6 +90,7 @@ release_test:
   script:
     - poetry config repositories.pypi_test https://test.pypi.org/legacy/
     - poetry publish --build --username $PYPI_TEST_LOGIN --password $PYPI_TEST_PASSWORD --repository pypi_test
+  only: [tags]
 
 pages:
   stage: publish_doc