aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2019-10-06 18:49:10 -0700
committerGravatar Tom Willemse2019-10-06 18:49:10 -0700
commitf0c1ca14686080bcdb7c6b07f2c7530b56ddbd29 (patch)
tree604d13ef84d823fdb309af83e7d688d04e90531d
parenta00df1cad87b16222f708636d2831bd8581e1d2a (diff)
downloadnew-ryuslash.org-f0c1ca14686080bcdb7c6b07f2c7530b56ddbd29.tar.gz
new-ryuslash.org-f0c1ca14686080bcdb7c6b07f2c7530b56ddbd29.zip
Add gitlab-ci configuration
-rw-r--r--.gitlab-cl.yml35
-rw-r--r--GNUmakefile13
2 files changed, 45 insertions, 3 deletions
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 $^ $@