add .gitlab-ci.yml

Ref: #278
This commit is contained in:
Aminda Suomalainen 2022-05-01 22:18:34 +03:00
parent 2e6d9a1d27
commit c7a5b599ff
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

30
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,30 @@
# from https://gitlab.com/pages/jekyll/-/blob/master/.gitlab-ci.yml
image: ruby:latest
variables:
JEKYLL_ENV: production
LC_ALL: C.UTF-8
before_script:
- gem install bundler
- bundle install
test:
stage: test
script:
- bundle exec jekyll build -d test
artifacts:
paths:
- test
rules:
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
pages:
stage: deploy
script:
- bundle exec jekyll build -d public
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH