debian-mirror-gitlab/lib/gitlab/ci/templates/Pages/Jekyll.gitlab-ci.yml

31 lines
465 B
YAML
Raw Normal View History

2017-08-17 22:00:37 +05:30
# Template project: https://gitlab.com/pages/jekyll
# Docs: https://docs.gitlab.com/ce/pages/
2016-06-22 15:30:34 +05:30
image: ruby:2.3
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:
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:
2019-09-04 21:01:54 +05:30
- master
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:
2019-09-04 21:01:54 +05:30
- master