diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3e87a8339f3230990ffbaf51acb389487e02bab9..a94146d7d71a65d3fc2eb078907971251e2e7bb1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -41,6 +41,8 @@ upload:
   stage: deploy
   needs: ['test', ]
   image: python:latest
+  only:
+    - master
   script:
     - pip install "setuptools>=62.6" twine
     - python setup.py sdist