diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 496de058d1314..7d1debb2fc09b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -329,7 +329,7 @@ build-rust-doc-release:
- rm -f ./crate-docs/index.html # use it as an indicator if the job succeeds
- BUILD_DUMMY_WASM_BINARY=1 RUSTDOCFLAGS="--html-in-header $(pwd)/.maintain/rustdoc-header.html" time cargo +nightly doc --release --all --verbose
- cp -R ./target/doc ./crate-docs
- - echo "" > ./crate-docs/index.html
+ - echo "" > ./crate-docs/index.html
- sccache -s
check_warnings: