From cd5d74aed58581acab3a76ee03dd6d1f6b856662 Mon Sep 17 00:00:00 2001 From: Gason Olivier <olivier.gason@uliege.be> Date: Tue, 4 Feb 2025 15:44:40 +0000 Subject: [PATCH] Add new file --- .gitlab-ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..d7165ef --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,26 @@ +# Build CollectionBuilder using Jekyll + +# use Ruby image that matches the version you are using locally +image: ruby:3.1 + +# set to production environment build +variables: + JEKYLL_ENV: production + LC_ALL: C.UTF-8 + +# install bundler, then install from Gemfile +before_script: + - gem install bundler + - bundle install + +# build and deploy site +pages: + stage: deploy + script: + - bundle exec jekyll build -d public + artifacts: + paths: + - public + only: + variables: + - $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH -- GitLab