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



commit 1a835342222c98f05c7ae9e95eea656407e513da
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 | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 359a0e5c..173c3a0e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,6 +2,7 @@ image: fedora:latest
 
 stages:
   - build
+  - deploy
 
 build-folks:
   stage: build
@@ -16,7 +17,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 +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]