From fdfa3a5458d605d563637343dd58ac444dcf6dff Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 26 Nov 2019 22:16:04 +0100 Subject: build HTML GitLab Pages site with GitLab CI This does a rough conversion to Markdown using regexps, then uses pandoc to convert the Markdown to HTML. An index.html is also generated to make it easy to find the various documents. This will create a site in any GitLab fork that has CI/CD and Pages setup, which is the default on gitlab.com. --- .gitlab-ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitlab-ci.yml (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..9211ec2 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,33 @@ + +pages: + image: debian:buster + script: + - apt-get update + - apt-get -qy install --no-install-recommends pandoc + - test -d public || mkdir public + - printf '\n\n

%s

' >> public/index.html + artifacts: + paths: + - public + only: + - master -- cgit v1.2.3-54-g00ecf