[libsoup/wip/new-master] ci: Enable exporting docs to gitlab pages
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [libsoup/wip/new-master] ci: Enable exporting docs to gitlab pages
- Date: Sat, 19 Sep 2020 22:26:39 +0000 (UTC)
commit d31f550410ecbd1ff8e7c02b5d1dd0910c26a5d6
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 | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8165e9fb..c09ea480 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
@@ -38,9 +40,37 @@ coverage:
   except:
     - tags
   artifacts:
+
     name: "libsoup-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
     paths:
       - _coverage/
   script:
     - bash -x ./.gitlab-ci/coverage-docker.sh
   coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
+
+reference:
+  stage: docs
+  variables:
+    DESTDIR: _install
+  needs: []
+  script:
+    - meson _build -Dgtk_doc=true
+    # FIXME: ninja -C _build libsoup-3.0-doc fails
+    - ninja -C _build 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
+    - wip/new-master
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]