diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d2ff0964030e0936a84e078773d8709b0352f941..78c92e78d993d9d536e5de63f3b8c2ff4977ff9e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,6 +10,7 @@ stages:
   - codestyle
   - manpages
   - transifex
+  - build-tarballs
 
 ## Stage lint
 
@@ -120,3 +121,12 @@ update-transifex:
     - tx pull -a -f
     - ../dev-tools/locale-scripts/fusiondirectory-update-locale -g
     - tx push -f -s -t --skip --no-interactive
+
+build-tarballs:
+  stage: build-tarballs
+  script:
+    - tar -cvzf fusiondirectory-core.tar.gz *
+  artifacts:
+    paths:
+    - fusiondirectory-core.tar.gz
+    expire_in: 1h