diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d1852ac9ca..caa859f926 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -286,10 +286,9 @@ cargo:doc:
- npm install --global netlify-cli
script:
- cargo doc --no-deps
- - mkdir -p public
- - cp -r target/doc public/doc
- - printf '' 'backend_rs' > public/doc/index.html
- - netlify deploy --dir=public
+ - printf '' 'backend_rs' > target/doc/index.html
+ - cd target/doc
+ - netlify deploy --prod --site="${CARGO_DOC_SITE_ID}" --dir=.
renovate:
stage: dependency