mikaela.github.io/.gitlab-ci.yml

31 lines
544 B
YAML
Raw Normal View History

2022-05-01 21:18:34 +02:00
# 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:
2023-02-22 19:28:38 +01:00
- bundle exec jekyll build -d test
2022-05-01 21:18:34 +02:00
artifacts:
paths:
2023-02-22 19:28:38 +01:00
- test
2022-05-01 21:18:34 +02:00
rules:
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
pages:
stage: deploy
script:
2023-02-22 19:28:38 +01:00
- bundle exec jekyll build -d public
2022-05-01 21:18:34 +02:00
artifacts:
paths:
2023-02-22 19:28:38 +01:00
- public
2022-05-01 21:18:34 +02:00
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH