diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 77942e56c5d18c364d4e1b5fc63d78b1eaee8be3..43c392110b115853d64e9a6445103604babbcb6d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -75,3 +75,17 @@ update-db-on-release:
     - rm -f tmp
   only:
     - /^v.*$/
+
+
+multi-version-json:
+  # Generate a multi-version JSON file for the model versions.
+  # Required for multi-version sphinx documentation on gitlab pages.
+  stage: release
+  image: "python:3.11"
+  before_script:
+    - pip install git+https://gitlab.cta-observatory.org/cta-computing/common/gitlab-multi-version-sphinx/
+  script:
+    - gitlab_multi_version_sphinx -v
+  artifacts:
+    paths:
+      - public