.gitlab-ci.yml 764 Bytes
Newer Older
Franchi's avatar
Franchi committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
image: ruby:2.3

variables:
  JEKYLL_ENV: production
  LC_ALL: C.UTF-8

before_script:
  - bundle install

test:
  stage: test
  script:
  - bundle exec jekyll build -s web -d test
  artifacts:
    paths:
    - test
  except:
  - master

pages:
  stage: deploy
  script:
Franchi's avatar
Franchi committed
23
  - cp ENTITATS_PARTICIPANTS.md web/_includes/entitats.md
24 25
  - cp la_guia/README.md web/_includes/que_es.md
  - cp la_guia/ESTRATEGIES.md web/_includes/estrategies.md
26
  - cp COM_CONTRIBUIR.md web/_includes/com_contribuir.md
Franchi's avatar
Franchi committed
27
  - bundle exec jekyll build -s web -d public
28
  - mv public/.well-known/acme-challenge/ONgg6wQJ5buyFzEKtn21h3LEg7Ozi5tjtlQ4u5FgC7g.html public/.well-known/acme-challenge/ONgg6wQJ5buyFzEKtn21h3LEg7Ozi5tjtlQ4u5FgC7g
Franchi's avatar
Franchi committed
29 30 31 32 33
  artifacts:
    paths:
    - public
  only:
  - master