diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9dd4bed..ba14d66 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,7 +6,7 @@ variables:
 
 pages:
   script:
-    - hugo
+    - hugo mod get -u && hugo --gc --minify
   artifacts:
     paths:
       # The folder that contains the files to be exposed at the Page URL