.gitlab-ci.yml 382 Bytes
Newer Older
Christophe Trefois's avatar
Christophe Trefois committed
1
2
3
4
5
6
image: ruby:2.5

variables:
  JEKYLL_ENV: production

before_script:
Jacek Lebioda's avatar
Jacek Lebioda committed
7
  - gem install bundler
Yohan Jarosz's avatar
Yohan Jarosz committed
8
  - bundle install && bundle update
Christophe Trefois's avatar
Christophe Trefois committed
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

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