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



commit 2bfaeb2ad8457854e9f816c01a09980b79ba0cab
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 | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 51a59601..df8b21b7 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,16 @@ build-flatpak-glade:
     FLATPAK_MODULE: 'libhandy'
     APP_ID: 'sm.puri.Handy.Glade'
     BUNDLE: 'sm.puri.Handy.Glade.flatpak'
+
+pages:
+  stage: publish
+  dependencies:
+    - build-gtkdoc
+  before_script: []
+  script:
+    - mv _reference/ public/
+  artifacts:
+    paths:
+      - public
+  only:
+    - master


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