2019-10-07 03:49:10 +02:00
|
|
|
image: silex/emacs:26.3-alpine-dev
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
build-html:
|
|
|
|
stage: build
|
2019-10-07 04:05:04 +02:00
|
|
|
before_script:
|
|
|
|
cask install
|
2019-10-07 03:49:10 +02:00
|
|
|
script:
|
|
|
|
make html
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public_html/
|
|
|
|
|
|
|
|
build-css:
|
|
|
|
stage: build
|
|
|
|
image: finalgene/lessc:3.10
|
|
|
|
script:
|
2019-10-07 03:54:06 +02:00
|
|
|
lessc src/less/main.less public_html/assets/css/main.css
|
2019-10-07 03:49:10 +02:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public_html/
|
|
|
|
|
|
|
|
pages:
|
|
|
|
stage: deploy
|
|
|
|
dependencies:
|
|
|
|
- build-html
|
|
|
|
- build-css
|
|
|
|
script:
|
|
|
|
- echo "Deploying to pages"
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public_html/
|
|
|
|
only:
|
|
|
|
- master
|