diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2b0e4066f04af7f7241349ab51947347d9c20bbc..4926885b73f73d94831e7b8e5c6eb3469c3b6471 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -67,7 +67,6 @@ pages:
     - public
   rules:
   - if: "$CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH"
-  - when: manual
 
 sast:
   before_script:
@@ -95,14 +94,12 @@ include:
 
 build_and_upload:
   stage: package
-  needs: []
   script:
     - pip install build twine
     - python3 -m build
     - TWINE_PASSWORD=${CI_PYPI_TOKEN} TWINE_USERNAME=__token__ python3 -m twine upload --repository testpypi dist/* 
   rules:
-  - if: "$CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH"
-  - when: manual
+  - if: $CI_COMMIT_TAG
 
 release_job:
   stage: release