[libsoup] ci: Enable exporting docs to gitlab pages
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] ci: Enable exporting docs to gitlab pages
- Date: Sat, 19 Sep 2020 22:41:58 +0000 (UTC)
commit 435242475c2c4982d18d80a8e3a4f802168f385f
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 | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8165e9fb..1e09c998 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,28 @@ 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
+ - 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]