diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index da5d71dc822fe297cc221c60d17441e8d7435c47..86f20269c78309717f5e356473e3cdd6a3671a2d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,6 +14,7 @@ pages:
     - git fetch origin $PAGES_BRANCH && git checkout -b $PAGES_BRANCH origin/$PAGES_BRANCH || git checkout $PAGES_BRANCH || echo "Pages branch not deployed yet."
     - git checkout $CI_COMMIT_SHA
   script:
+    - git pull origin $PAGES_BRANCH --rebase
     - >
       if [ -n "$CI_COMMIT_TAG" ]; then
         mike deploy --deploy-prefix public -r $HTTPS_REMOTE -p -b $PAGES_BRANCH -u $CI_COMMIT_TAG $CI_COMMIT_TAG