diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8ba71304de8c04e0363b2f4959614602ba4eaac2..fe8cd05990474fc9ff772ffa1238aee3c0330148 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -57,10 +57,10 @@ Pytest:
 pypi:
   stage: Pip
   only:
-   - main
+   - tags
   before_script:
-   - python3 -m pip install --upgrade build twine
+   - python -m pip install --upgrade build twine
   script:
-   - python3 -m build
+   - python -m build
   after_script:
-   - python3 -m twine upload --repository-url https://upload.pypi.org/legacy/ --non-interactive --verbose -u __token__ -p $PYPI_TOKEN dist/*
+   - python -m twine upload --repository-url https://upload.pypi.org/legacy/ --non-interactive --verbose -u __token__ -p $PYPI_TOKEN dist/*