[retro-gtk/build-doc: 8/8] ci: Build and publish the reference manual



commit 1126ae2eede0ad4a52dd11bf9b31fc3668a5d5f0
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sun Apr 12 21:32:04 2020 +0200

    ci: Build and publish the reference manual

 .gitlab-ci.yml | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d345391..c045e15 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,6 +3,7 @@ stages:
   - build
   - test
   - review
+  - publish
 
 api-visibility:
   stage: lint
@@ -66,6 +67,21 @@ flatpak:demo:
       - _build/meson-logs/meson-log.txt
     expire_in: 2 days
 
+reference:
+  image: registry.gitlab.gnome.org/gnome/gtk/fedora:v16
+  stage: build
+  variables:
+    EXTRA_MESON_FLAGS: "--buildtype=release"
+  script:
+    - meson ${COMMON_MESON_FLAGS} ${EXTRA_MESON_FLAGS} -Dbuild-doc=true _build
+    - ninja -C _build
+    - ninja -C _build retro-gtk-doc 2>&1 | tee _build/doc/buildlog
+    - if grep -qs 'warning' _build/doc/buildlog; then exit 1; fi
+    - mv _build/doc/html/ _reference/
+  artifacts:
+    paths:
+      - _reference
+
 review:
   stage: review
   dependencies:
@@ -98,3 +114,15 @@ stop_review:
     - master@GNOME/retro-gtk
     - gnome-3-.*
     - tags
+
+pages:
+  stage: publish
+  dependencies:
+    - reference
+  script:
+    - mv _reference/ public/
+  artifacts:
+    paths:
+      - public
+  only:
+    - master


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