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



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

    Auto-deploy documentation on master
    
    After this commit, you can find the latest version of the Folks
    documentation on
    
    * https://gnome.pages.gitlab.gnome.org/folks/devhelp/folks/index.htm
    * https://gnome.pages.gitlab.gnome.org/folks/gtkdoc/folks/

 .gitlab-ci.yml | 27 +++++++++++++++++++++++++--
 1 file changed, 25 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 359a0e5c..2518149b 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 gtk-doc
       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,25 @@ build-folks:
       - "_build/config.h"
       - "_build/meson-logs"
       - "_build/${CI_JOB_NAME}-report.xml"
+      - "_build/docs"
+
+pages:
+  stage: deploy
+  dependencies:
+    - build-folks
+  script:
+    # Devhelp (Vala API)
+    - mkdir -p public/devhelp
+    - mv _build/docs/devhelp/* public/devhelp
+    # Gtk-doc (C API)
+    - >
+      for f in folks folks-dummy folks-eds folks-telepathy; do
+        mkdir -p public/gtkdoc/$f
+        # We're only interested in the generated HTML here
+        mv _build/docs/gtkdoc/$f/html/* public/gtkdoc/$f
+      done
+  artifacts:
+    paths:
+      - public
+  # only:
+  #   - master


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