diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c535399724d1fc9823a804ffd50ad2e2df0973b1..ddc44136b3b48d87806c2385333a8e511ebfaee0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,7 +17,7 @@ before_script:
 build_package:
   stage: build
   script:
-    - python setup.py sdist bdist_wheel
+    - python -m build
   artifacts:
     paths:
       - dist/*