[gtk/ci-docs] ci: Add a separate "docs" stage



commit e78f7519b054ebadaceae9ba5182b9d3afb4b65a
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Feb 25 16:42:07 2020 +0000

    ci: Add a separate "docs" stage
    
    Don't build the API reference on deploy; build it in a separate job,
    instead, so we can run it on all pipelines, and deploy it only for
    master.

 .gitlab-ci.yml | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5d8aea5315..120d3643b0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,8 +1,9 @@
 stages:
   - style-check
   - build
-  - deploy
+  - docs
   - flatpak
+  - deploy
 
 .cache-paths: &cache-paths
   paths:
@@ -166,7 +167,7 @@ flatpak-master:icon-browser:
     APPID: org.gtk.IconBrowser4
   <<: *flatpak-master
 
-pages:
+docs:
   image: registry.gitlab.gnome.org/gnome/gtk/fedora:v13
   stage: deploy
   variables:
@@ -174,10 +175,18 @@ pages:
   script:
     - meson ${COMMON_MESON_FLAGS} -Dgtk_doc=true _build
     - ninja -C _build gdk4-doc gsk4-doc gtk4-doc
-    - mkdir -p public/
-    - mv _build/docs/reference/gdk/html/ public/gdk/
-    - mv _build/docs/reference/gsk/html/ public/gsk/
-    - mv _build/docs/reference/gtk/html/ public/gtk/
+    - mkdir -p _reference/
+    - mv _build/docs/reference/gdk/html/ _reference/gdk/
+    - mv _build/docs/reference/gsk/html/ _reference/gsk/
+    - mv _build/docs/reference/gtk/html/ _reference/gtk/
+  artifacts:
+    paths:
+      - _reference
+
+pages:
+  stage: deploy
+  script:
+    - mv _reference/ public/
   artifacts:
     paths:
       - public


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