.gitlab-ci.yml 341 B

123456789101112131415161718192021222324252627
  1. image: ruby:2.3
  2. variables:
  3. JEKYLL_ENV: production
  4. before_script:
  5. - bundle install
  6. test:
  7. stage: test
  8. script:
  9. - bundle exec jekyll build -d test
  10. artifacts:
  11. paths:
  12. - test
  13. except:
  14. - master
  15. pages:
  16. stage: deploy
  17. script:
  18. - bundle exec jekyll build -d public
  19. artifacts:
  20. paths:
  21. - public
  22. only:
  23. - master