From f0c1ca14686080bcdb7c6b07f2c7530b56ddbd29 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 6 Oct 2019 18:49:10 -0700 Subject: [PATCH] Add gitlab-ci configuration --- .gitlab-cl.yml | 35 +++++++++++++++++++++++++++++++++++ GNUmakefile | 13 ++++++++++--- 2 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 .gitlab-cl.yml diff --git a/.gitlab-cl.yml b/.gitlab-cl.yml new file mode 100644 index 0000000..4343d80 --- /dev/null +++ b/.gitlab-cl.yml @@ -0,0 +1,35 @@ +image: silex/emacs:26.3-alpine-dev + +stages: + - build + - deploy + +build-html: + stage: build + script: + make html + artifacts: + paths: + - public_html/ + +build-css: + stage: build + image: finalgene/lessc:3.10 + script: + make css + artifacts: + paths: + - public_html/ + +pages: + stage: deploy + dependencies: + - build-html + - build-css + script: + - echo "Deploying to pages" + artifacts: + paths: + - public_html/ + only: + - master diff --git a/GNUmakefile b/GNUmakefile index 2e62e41..ff308af 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,9 +1,16 @@ -.PHONY: site +.PHONY: site html css -site: public_html/index.html public_html/assets/css/main.css +site: html css + +html: public_html/index.html + +css: public_html/assets/css/main.css public_html/%.html: %.org - emacs -batch -funcall package-initialize -load project-config.el -funcall publish-ryuslash.org + emacs -batch \ + -funcall package-initialize \ + -load project-config.el \ + -funcall publish-ryuslash.org public_html/assets/css/%.css: src/less/%.less lessc $^ $@