From c7a5b599ffb0f9a275f025fa2de78a9b46dc7ac5 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sun, 1 May 2022 22:18:34 +0300 Subject: [PATCH] add .gitlab-ci.yml Ref: #278 --- .gitlab-ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..fafd8c8 --- /dev/null +++ b/.gitlab-ci.yml @@ -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