diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9041087fd53a03554cefeb9286c0e82e0cae23e4..3019ff9ef4398a5e48d4b1b45cd070d6069d96d7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,23 +4,17 @@ stages:
   - build
   - deploy
 
-variables:
-  PAGES: $CI_PROJECT_DIR/public
-
 before_script:
   - pip install jupyter nbconvert
 
 build_notebooks:
   stage: build
   script:
-    - mkdir -p $PAGES
-    - jupyter nbconvert --to html notebooks/*.ipynb --output-dir=$PAGES
+    - mkdir -p public
+    - jupyter nbconvert --to html notebooks/*.ipynb --output-dir=public
 
 pages:
   stage: deploy
-  script:
-    - mkdir -p public
-    - cp -r $PAGES/* public
   artifacts:
     paths:
       - public