Tom Willemse
cbee86f26d
If I remember correctly the gitlab pages deployment needs everything to be in ‘public’.
37 lines
542 B
YAML
37 lines
542 B
YAML
image: silex/emacs:26.3-alpine-dev
|
|
|
|
stages:
|
|
- build
|
|
- deploy
|
|
|
|
build-html:
|
|
stage: build
|
|
before_script:
|
|
- cask install
|
|
script:
|
|
make html
|
|
artifacts:
|
|
paths:
|
|
- public_html/
|
|
|
|
build-css:
|
|
stage: build
|
|
image: finalgene/lessc:3.10
|
|
script:
|
|
lessc src/less/main.less public_html/assets/css/main.css
|
|
artifacts:
|
|
paths:
|
|
- public_html/
|
|
|
|
pages:
|
|
stage: deploy
|
|
dependencies:
|
|
- build-html
|
|
- build-css
|
|
script:
|
|
- mv public_html public
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
only:
|
|
- master
|