diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f8514b8f03eb8eefb9a0a38059069510d987603f..d46f091d0efae4e0dd9b465011ada1f8d688f52f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -114,8 +114,7 @@ pages:
     - generator:gource
   image: $CI_REGISTRY/r3/docker/julia-custom
   script:
-    # resolve and build packages from the docs/Project.toml file
-    - julia --project=docs -e 'julia --project=docs -e 'using Pkg; Pkg.resolve(); Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate();'
+    - julia --project=docs -e 'using Pkg; Pkg.resolve(); Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate();'
     - julia --project=docs --color=yes docs/make.jl
     - mv docs/build public # move to the directory picked up by Gitlab pages
   artifacts: