[mutter/bilelmoussaoui/docs] CI: build and deploy documentations




commit 12424bf55d62e6869e023f7e675254bcea081a69
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Tue May 24 11:17:56 2022 +0000

    CI: build and deploy documentations
    
    A first step towards better documentations of Mutter & it internal libraries

 .gitlab-ci.yml | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3a9b3441ea..688f6e7f03 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,6 +9,7 @@ stages:
  - build
  - test
  - analyze
+ - docs
  - deploy
 
 variables:
@@ -485,3 +486,32 @@ dist-mutter-tarball:
       - build/meson-dist/$CI_PROJECT_NAME-$CI_COMMIT_TAG.tar.xz
   rules:
     - if: '$CI_COMMIT_TAG'
+
+reference:
+  extends:
+    - .fdo.distribution-image@fedora
+    - .mutter.fedora:35@x86_64
+  stage: docs
+  needs:
+    - build-fedora-container@x86_64
+  before_script:
+    - dnf install gi-docgen -y
+  script:
+    - meson . build --werror -Ddocs=true -Dtests=false
+    - ninja -C build
+    - mkdir references
+    - mv build/doc/reference/{cally/cally,clutter/clutter,cogl/cogl,cogl-pango/cogl-pango,meta/meta} 
references/
+  artifacts:
+    paths:
+      - references
+
+pages:
+  stage: deploy
+  needs: ['reference']
+  script:
+    - mv references public/
+  artifacts:
+    paths:
+      - public
+  only:
+    - main


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