.gitlab-ci.yml 1.06 KB
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
  - cp la_guia/README.md web/_includes/que_es.md
25
  - sed -z 's/\n\n\*/\n*/g' la_guia/ESTRATEGIES.md | sed -z 's/\n\n\([[:digit:]]\)/\n\1/g' > web/_includes/estrategies.md
26
  - cp COM_CONTRIBUIR.md web/_includes/com_contribuir.md
27 28
  - sed -z 's/\n\n\*/\n*/g' locale/es/ESTRATEGIES.md | sed -z 's/\n\n\([[:digit:]]\)/\n\1/g' > web/_includes/estrategies-es.md
  - sed -z 's/\n\n\*/\n*/g' locale/en/ESTRATEGIES.md | sed -z 's/\n\n\([[:digit:]]\)/\n\1/g' > web/_includes/estrategies-en.md
Franchi's avatar
Franchi committed
29
  - bundle exec jekyll build -s web -d public
30
  - mv public/.well-known/acme-challenge/ONgg6wQJ5buyFzEKtn21h3LEg7Ozi5tjtlQ4u5FgC7g.html public/.well-known/acme-challenge/ONgg6wQJ5buyFzEKtn21h3LEg7Ozi5tjtlQ4u5FgC7g
Franchi's avatar
Franchi committed
31 32 33 34 35
  artifacts:
    paths:
    - public
  only:
  - master