diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d2552eb0549be5b56435d025754101b8260a2401..49d8ac8bcb9036ba04726c918d92bbde11b65b85 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -620,6 +620,7 @@ release-docs:
   script:
     - "make gen-lib-doc gen-docs-doc"
     - "cp -r ./lib/python/docs/build/html ./final/${APP_VERSION}/python" # sphinx
+    - "mkdir -p ./final/${APP_VERSION}/rest"
     - "cp .docs/.swagger/api.yaml ./final/${APP_VERSION}/rest/api.yaml" # swagger
     - "cp .docs/.swagger/swagger-ui.html ./final/${APP_VERSION}/rest/index.html" # swagger
     - "cp .docs/.swagger/custom.css ./final/${APP_VERSION}/rest/custom.css" # swagger