diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0f522beb1ac1f33bf977bfe1dd008ba62214e896..062222cda26b5cf65a09018058bdebb088771650 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -114,11 +114,9 @@ Documentation:
     curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/main/ci-support.sh
     . ci-support.sh
     build_py_project_in_venv
-    pushd $PWD
     build_docs
-    popd
     if [[ -d ~/.scicomp-benchmarks/asv/$PROJECT ]]; then
-      cp -rf ~/.scicomp-benchmarks/asv/$PROJECT doc/_build/html/benchmarks
+      cp -rf ~/.scicomp-benchmarks/asv/$PROJECT _build/html/benchmarks
     fi
     maybe_upload_docs