Introduce how to setup personal website on GitLab.
baseurl: "/blog"
.gitlab-ci.yml
image: ruby:2.3
variables:
JEKYLL_ENV: production
before_script:
- bundle install
test:
stage: test
script:
- bundle exec jekyll build -d test
artifacts:
paths:
- test
except:
- master
pages:
stage: deploy
script:
- bundle exec jekyll build -d _site
artifacts:
paths:
- _site
only:
- master