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




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

    ci: Build docs in CI

 .gitlab-ci.yml | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 78f380aa41..76d663d83a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,6 +9,7 @@ stages:
  - review
  - build
  - test
+ - docs
  - deploy
 
 default:
@@ -227,3 +228,29 @@ nightly:
   extends: '.publish_nightly'
   variables:
     BUNDLES: '$BUNDLE'
+
+reference:
+  stage: docs
+  needs: []
+  variables:
+    EXTRA_MESON_FLAGS: ""
+  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]