[gnome-shell/zbrown/docgen] ci: Build docs in CI




commit 19d7e4d82136048259bdc1eadb2d913ae2f7dbad
Author: Zander Brown <zbrown gnome org>
Date:   Mon Jun 7 01:10:28 2021 +0100

    ci: Build docs in CI

 .gitlab-ci.yml | 35 +++++++++++++++++++++++++++++++++--
 1 file changed, 33 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 78f380aa41..4b681c6e8a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,6 +9,7 @@ stages:
  - review
  - build
  - test
+ - docs
  - deploy
 
 default:
@@ -178,13 +179,17 @@ no_template_check:
     script:
         - ./.gitlab-ci/check-template-strings.sh
 
-build:
+mutter:
     stage: build
     needs: ["check_commit_log"]
-    before_script:
+    script:
         - .gitlab-ci/checkout-mutter.sh
         - meson mutter mutter/build --prefix=/usr -Dtests=false
         - ninja -C mutter/build install
+
+build:
+    stage: build
+    needs: ["mutter"]
     script:
         - meson . build -Dbuildtype=debugoptimized -Dman=false --werror
         - ninja -C build
@@ -227,3 +232,29 @@ nightly:
   extends: '.publish_nightly'
   variables:
     BUNDLES: '$BUNDLE'
+
+reference:
+    stage: docs
+    needs: ["mutter"]
+    before_script:
+        - pip install markdown toml typogrify
+    script:
+        - meson -Dman=false -Dgtk_doc=true _build
+        - ninja -C _build
+        - mkdir -p _reference/
+        - mv _build/docs/St/ _reference/
+        - mv _build/docs/Shell/ _reference/
+    artifacts:
+        paths:
+            - _reference
+
+pages:
+    stage: deploy
+    needs: ['reference']
+    script:
+        - mv _reference/ public/
+    artifacts:
+        paths:
+             - public
+    only:
+        - master


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