~xdavidwu/xdavidwu.link

43e869ad9c91b7ea47676024a915250fac43de43 — xdavidwu 5 years ago 27c13ce
Add .gitlab-ci.yml
1 files changed, 31 insertions(+), 0 deletions(-)

A .gitlab-ci.yml
A .gitlab-ci.yml => .gitlab-ci.yml +31 -0
@@ 0,0 1,31 @@
# This file is a template, and might need editing before it works on your project.
# Template project: https://gitlab.com/pages/jekyll
# Docs: https://docs.gitlab.com/ce/pages/
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 public
  artifacts:
    paths:
    - public
  only:
  - master