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

variables:
  JEKYLL_ENV: production

6
7
8
9
10
11
stages:
  - test
  - pages
  - deploy
  - release

Christophe Trefois's avatar
Christophe Trefois committed
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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:
Jacek Lebioda's avatar
Updates    
Jacek Lebioda committed
33
  - master
Christophe Trefois's avatar
Christophe Trefois committed
34

35
36
37
38
39
40
41
42
release:
  stage: release
  script:
    - echo "$API_KEY_B64" | base64 --decode > ~/.gem/credentials && chmod 0600 ~/.gem/credentials
    - gem build jekyll-theme-lcsb-default.gemspec
    - gem push jekyll-theme-lcsb-default*.gem
  only:
    - tags