From 1ea8329309eacf007389eee32eb89f6e5def5132 Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Tue, 13 Apr 2021 12:05:42 +0100
Subject: [PATCH] .gitlab-ci.yml: Fix build docs artifacts path

The generic pipelines triggers the build docs jobs based on the
assumption that the documentation build directory is in a docs
subdirectoy. That is not the case in the docs repository which uses the
repository root for the build directory.

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 1b88168..1d21e4b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -50,6 +50,9 @@ build-docs:
   script:
     - !reference [.workspace, script]
     - !reference [.build-docs, script]
+  artifacts:
+    paths:
+      - build
   rules:
     # Build the docs when a merge request is created.
     - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
-- 
GitLab