From 6122b635a5de60065e2a1c8020a3768c2e729ed8 Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Tue, 13 Apr 2021 13:11:18 +0100
Subject: [PATCH] .gitlab-ci.yml: Move build docs to fix artifacts

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 .gitlab-ci.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1d21e4b..6d3e0f5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -50,6 +50,9 @@ build-docs:
   script:
     - !reference [.workspace, script]
     - !reference [.build-docs, script]
+    # Artifatcs are relative to CI_PROJECT_DIR so we need to provide the build
+    # docs there.
+    - mv "$SCRATCH_DIR"/docs/build/ "$CI_PROJECT_DIR" || true
   artifacts:
     paths:
       - build
-- 
GitLab