diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 11044eff32f7f32d1f13e1294385c5ce4fee1a46..920e03bf5792e0dce9d87750b0caf5942f9af311 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -49,12 +49,14 @@ ragdoc_view:
     - ragdoc_build
   script:
     - DATA_DIR=$(pwd -P)/data
+    - OUTPUT_DIR=$(pwd -P)/dist
     - cd /ragdoc-view
     - ( cd src/ && rm -rf data && ln -s $DATA_DIR )
-    - /ragdoc-view/build-view.sh --output-path=/dist
+    - /ragdoc-view/build-view.sh --output-path=$OUTPUT_DIR
+    - ls -lah dist/
   artifacts:
     paths:
-      - "/dist/"
+      - "dist/"
 
 pages:
   image: python:3.7-alpine
@@ -65,7 +67,7 @@ pages:
     - pip install -U sphinx sphinx-rtd-theme recommonmark sphinxemoji sphinx-markdown-tables
   script:
     - mkdir -p pages/_static/ragdoc
-    - cp -a /dist/* pages/_static/ragdoc/
+    - cp -a dist/* pages/_static/ragdoc/
     - sphinx-build -b html pages/ public
   artifacts:
     paths: