Add gitlab-ci configuration

This commit is contained in:
Tom Willemse 2019-10-06 18:49:10 -07:00
parent a00df1cad8
commit f0c1ca1468
2 changed files with 45 additions and 3 deletions

35
.gitlab-cl.yml Normal file
View file

@ -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

View file

@ -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 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 public_html/assets/css/%.css: src/less/%.less
lessc $^ $@ lessc $^ $@