diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 66d7142a35c5fd9092dc22fb291c07de72344038..388aa121b5b466e479ee18f7b75c6a22554c6ad4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -16,7 +16,7 @@ before_script:
 
 pypi_publish:
   before_script:
-   - pip install twine
+   - pip install build twine
    - pip install urllib3==1.26.6
   only:
    - main