[folks/wip/nielsdg/ci-docs] WIP: Auto-deploy documentation on master



commit 8bac52ee9b0d90baff96bd7f4fd2891f5642492e
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Thu Jun 4 13:47:12 2020 +0200

    WIP: Auto-deploy documentation on master

 .gitlab-ci.yml | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index db534ecb..7bff0ccf 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -16,7 +16,7 @@ build-folks:
       telepathy-glib-vala tracker-devel vala
       dbus-daemon # FIXME: dbus-broker breaks the CI, see https://github.com/bus1/dbus-broker/issues/145
   script:
-    - meson _build
+    - meson _build -Ddocs=true
     - ninja -C _build
     - bash +x ./.gitlab-ci/run-tests.sh
   artifacts:
@@ -28,3 +28,16 @@ build-folks:
       - "_build/config.h"
       - "_build/meson-logs"
       - "_build/${CI_JOB_NAME}-report.xml"
+      - "_build/docs"
+
+pages:
+  stage: deploy
+  dependencies:
+    - build-folks
+  script:
+    - mv _build/docs/ public/
+  artifacts:
+    paths:
+      - public
+  only:
+    - master


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]