diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2327dc0b9672f7a3956cb93aab547926d7dfdefb..609d101e346b849e94a00cf04bbcfa79969513e6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,6 +19,7 @@ include:
   - local: '/scripts/ci/jobs/pre-commit.yml'
   - local: '/scripts/ci/jobs/build_image.yml'
   - local: '/scripts/ci/jobs/build.yml'
+  - local: '/scripts/ci/jobs/build-docs.yml'
   - local: '/scripts/ci/jobs/build-win.yml'
   - local: '/scripts/ci/jobs/build-mac.yml'
   - local: '/scripts/ci/jobs/checks.yml'
diff --git a/scripts/ci/jobs/build-docs.yml b/scripts/ci/jobs/build-docs.yml
new file mode 100644
index 0000000000000000000000000000000000000000..c5a01dca71adfba076e355592730cbde8bc1fb40
--- /dev/null
+++ b/scripts/ci/jobs/build-docs.yml
@@ -0,0 +1,16 @@
+build docs:
+  stage: test
+  image:
+    name: $CONTAINER_GCC_IMAGE
+
+  before_script:
+    - mkdir -p build
+    - cd build
+
+  script:
+    - cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DOGS_USE_CONAN=OFF -DOGS_BUILD_PROCESSES=GroundwaterFlow
+    - cmake --build . --target doc > >(tee make-docs.output)
+
+  artifacts:
+    expose_as: 'Doxygen'
+    paths: ['build/docs/']
diff --git a/scripts/ci/jobs/build.yml b/scripts/ci/jobs/build.yml
index f7adb9cfff48fd95cb7d0c1244352c457a3ceae2..7255ae26da39cd0c4a9defe3aa344e1eb3f8168d 100644
--- a/scripts/ci/jobs/build.yml
+++ b/scripts/ci/jobs/build.yml
@@ -1,20 +1,3 @@
-build docs:
-  stage: test
-  image:
-    name: $CONTAINER_GCC_IMAGE
-
-  before_script:
-    - mkdir -p build
-    - cd build
-
-  script:
-    - cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DOGS_USE_CONAN=OFF -DOGS_BUILD_PROCESSES=GroundwaterFlow
-    - cmake --build . --target doc > >(tee make-docs.output)
-
-  artifacts:
-    expose_as: 'Doxygen'
-    paths: ['build/docs/']
-
 build:
   stage: test
   variables: