[libhandy/pages] ci: Export the reference manual to GitLab pages



commit 20a0332a3d8f0449fefdff4f441b1ecedc2c24b2
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Fri May 22 15:37:07 2020 +0200

    ci: Export the reference manual to GitLab pages

 .gitlab-ci.yml | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 51a59601..496d93bc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,6 +7,7 @@ stages:
   - test+docs
   - package
   - test-package
+  - publish
 
 before_script:
   - echo "man-db man-db/auto-update boolean false" | debconf-set-selections
@@ -82,10 +83,11 @@ build-gtkdoc:
   script:
     - ninja -C _build meson-libhandy-doc 2>&1 | tee _build/doc/buildlog
     - if grep -qs 'warning' _build/doc/buildlog; then exit 1; fi
+    - mv _build/doc/html/ _reference/
   artifacts:
     when: always
     paths:
-      - _build/doc/html
+      - _reference
 
 unit-test:
   image: debian:buster
@@ -138,3 +140,13 @@ build-flatpak-glade:
     FLATPAK_MODULE: 'libhandy'
     APP_ID: 'sm.puri.Handy.Glade'
     BUNDLE: 'sm.puri.Handy.Glade.flatpak'
+
+pages:
+  stage: publish
+  dependencies:
+    - build-gtkdoc
+  script:
+    - mv _reference/ public/
+  artifacts:
+    paths:
+      - public


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