diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ede351052e8bd34834e8e2657f98c8b87bc6dbf0..ecb459eadd6365a8f9e6ebb0c4e938a7f800e461 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -38,6 +38,7 @@ build:
 publish:
   stage: publish
   script:
+    - python3 -m build
     - TWINE_PASSWORD=${PYPI_TOKEN} TWINE_USERNAME=__token__ python3 -m twine upload --verbose dist/*
   rules:
     - if: $CI_COMMIT_TAG