diff --git a/docs/.gitlab-ci.yml b/docs/.gitlab-ci.yml
index c64542d8264af6f04309289db448f154d62a883d..33170a1c1080157f27bc71ff83def51d7907a227 100644
--- a/docs/.gitlab-ci.yml
+++ b/docs/.gitlab-ci.yml
@@ -52,7 +52,7 @@ publish-prod-2:
     refs:
       - main  # Only publish when on the main branch
   needs:
-    - job: lint-documentation  # ... and after it has passed the linting pipeline
+    - job: build-documentation
       artifacts: true
 
   script:
@@ -67,7 +67,7 @@ publish-prod-1:
     - gap-docs-prod-1
 
   needs:
-    - job: publish-prod-2  # Only run when publishing to prod-2 was successful
+    - job: build-documentation
       artifacts: true
 
   script: