diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..d7165ef48657b8aa2dcacd40a1b7eb5e6755e232 --- /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