diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bff6ec18eefc1fc179ee9d33f034df495d4b14d2..2844d4a068891a67932c563aad013d276262c3c2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,8 +1,19 @@
 zip:
   stage: deploy
   script:
-  - make zip
+    - echo "Script part cannot be empty."
   artifacts:
-    name: thesis.zip
+    name: thesis
     paths:
-    - thesis.zip
+      - "*"
+    exclude:
+      - ".gitlab-ci.yml"
+      # See https://gitlab.com/gitlab-org/gitlab/-/issues/11091#note_790389715
+      - ".git"
+      - ".git/*"
+      - ".git/*/*"
+      - ".git/*/*/*"
+      - ".git/*/*/*/*"
+      - ".git/*/*/*/*/*"
+  only:
+    - master