[gnomemm-website] CI: Add .gitlab-ci.yml
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnomemm-website] CI: Add .gitlab-ci.yml
- Date: Fri, 7 Jan 2022 15:42:04 +0000 (UTC)
commit 7b7e162bb5e9bbd2d657bbc1f9a53c8cb19b4c3d
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Fri Jan 7 16:39:13 2022 +0100
CI: Add .gitlab-ci.yml
The website is published at gnome.pages.gitlab.gnome.org/gnomemm-website.
It remains to have it mirrored at www.gtkmm.org. See gtkmm#52
.gitlab-ci.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..7315c78
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,44 @@
+# 2022-01-06: ubuntu:latest = 20.04, ubuntu:rolling = 21.10, ubuntu:devel = 22.04
+# See https://hub.docker.com/_/ubuntu
+image: ubuntu:rolling
+
+stages:
+ - build
+ - deploy
+
+website_build:
+ stage: build
+ variables:
+ DEPENDENCIES:
+ autoconf
+ yelp-tools
+ make
+ gettext
+ itstool
+ libxml2-utils
+ xsltproc
+ docbook-xml
+ docbook-xsl
+ # docbook5-xml
+ # docbook-xsl-ns
+ script:
+ - export DEBIAN_FRONTEND=noninteractive
+ - apt update && apt -y upgrade && apt -y install $DEPENDENCIES
+ - mkdir _build && cd _build
+ - ../autogen.sh --prefix=/usr
+ - make
+ artifacts:
+ paths:
+ - _build/docs/html
+
+# Publish the gtkmm website at gnome.pages.gitlab.gnome.org/gnomemm-website
+pages:
+ stage: deploy
+ script:
+ - mkdir public
+ - mv docs/html/.htaccess docs/html/* _build/docs/html/* public
+ artifacts:
+ paths:
+ - public
+ only:
+ - master
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]