diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 144bc46c8bf615f873d6040e9523a90664f115a8..b02f0d41f592af25f02f15995feaad4dc8c09be4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,9 +13,10 @@ workflow:
 variables:
 
 stages:
+  - build
   - generation
   - publication
-  - build
+  - web
     
 Build pythonForPandocFilter docker image:
   stage: build
@@ -75,11 +76,10 @@ Publish spec:
       - "${CI_PROJECT_NAME}_${CI_COMMIT_TAG}.docx"
 
 pages:
-  stage: publication
+  stage: web
+  when: on_success
   only:
     - tags
-  dependencies:
-    - Publish spec
   script:
     # Get the previous GitLab Pages content
     - set +e