diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1b88168f2b20440bb3863254012e6cf18cc851aa..1d21e4bcf6ce1c697ed885abd770547ecf25c331 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -50,6 +50,9 @@ build-docs:
   script:
     - !reference [.workspace, script]
     - !reference [.build-docs, script]
+  artifacts:
+    paths:
+      - build
   rules:
     # Build the docs when a merge request is created.
     - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'