[libsoup/wip/new-master] ci: Enable exporting docs to gitlab pages



commit db7011e8a0e58e5c7259053843124690b9f51015
Author: Patrick Griffis <pgriffis igalia com>
Date:   Sat Sep 19 15:02:30 2020 -0700

    ci: Enable exporting docs to gitlab pages

 .gitlab-ci.yml | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8165e9fb..8f50aa44 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,6 +3,8 @@ image: registry.gitlab.gnome.org/gnome/libsoup/master:v5
 stages:
   - build
   - coverage
+  - docs
+  - deploy
 
 .build:
   stage: build
@@ -44,3 +46,27 @@ coverage:
   script:
     - bash -x ./.gitlab-ci/coverage-docker.sh
   coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
+
+reference:
+  stage: docs
+  needs: []
+  script:
+    - meson _build -Dgtk_doc=true
+    # FIXME: ninja -C _build libsoup-3.0-doc fails
+    - -env DESTDIR=_install ninja -C _build libsoup install
+    - mkdir -p _reference
+    - mv _build/docs/reference/html/ _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]