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



commit 5a9515ac4d4faab31aff5517b192b377022c1775
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 | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 359a0e5c..8b671023 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,6 +2,7 @@ image: fedora:latest
 
 stages:
   - build
+  - deploy
 
 build-folks:
   stage: build
@@ -13,10 +14,10 @@ build-folks:
       dbus-glib-devel evolution-data-server-devel glib2-devel
       gobject-introspection-devel libgee-devel libxml2-devel meson ninja-build
       python3-dbusmock readline-devel redhat-rpm-config telepathy-glib-devel
-      telepathy-glib-vala tracker-devel vala
+      telepathy-glib-vala tracker-devel vala valadoc
       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 +29,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]