2017-08-17 22:00:37 +05:30
|
|
|
# Template project: https://gitlab.com/pages/jekyll
|
2021-01-03 14:25:43 +05:30
|
|
|
# Docs: https://docs.gitlab.com/ee/pages/
|
2020-04-08 14:13:33 +05:30
|
|
|
image: ruby:2.6
|
2016-06-22 15:30:34 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
variables:
|
|
|
|
JEKYLL_ENV: production
|
2019-09-30 21:07:59 +05:30
|
|
|
LC_ALL: C.UTF-8
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
before_script:
|
2020-04-08 14:13:33 +05:30
|
|
|
- gem install bundler
|
2019-09-04 21:01:54 +05:30
|
|
|
- bundle install
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2016-06-22 15:30:34 +05:30
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
script:
|
2019-09-04 21:01:54 +05:30
|
|
|
- bundle exec jekyll build -d test
|
2016-06-22 15:30:34 +05:30
|
|
|
artifacts:
|
|
|
|
paths:
|
2019-09-04 21:01:54 +05:30
|
|
|
- test
|
2016-06-22 15:30:34 +05:30
|
|
|
except:
|
2021-04-17 20:07:23 +05:30
|
|
|
variables:
|
|
|
|
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
2016-06-22 15:30:34 +05:30
|
|
|
|
|
|
|
pages:
|
|
|
|
stage: deploy
|
|
|
|
script:
|
2019-09-04 21:01:54 +05:30
|
|
|
- bundle exec jekyll build -d public
|
2016-06-22 15:30:34 +05:30
|
|
|
artifacts:
|
|
|
|
paths:
|
2019-09-04 21:01:54 +05:30
|
|
|
- public
|
2016-06-22 15:30:34 +05:30
|
|
|
only:
|
2021-04-17 20:07:23 +05:30
|
|
|
variables:
|
|
|
|
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|