.gitlab-ci.yml 468 B

1234567891011121314151617181920212223242526272829
  1. image: ruby:latest
  2. variables:
  3. JEKYLL_ENV: production
  4. LC_ALL: C.UTF-8
  5. before_script:
  6. - gem install bundler
  7. - bundle install
  8. test:
  9. stage: test
  10. script:
  11. - bundle exec jekyll build -d test
  12. artifacts:
  13. paths:
  14. - test
  15. rules:
  16. - if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
  17. pages:
  18. stage: deploy
  19. script:
  20. - bundle exec jekyll build -d public
  21. artifacts:
  22. paths:
  23. - public
  24. rules:
  25. - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH