.gitlab-ci.yml 601 Bytes
Newer Older
1
image: framasoft/gitbook:latest
2 3 4 5 6

pages:
  script:
    - gitbook init
    - gitbook install
7 8
    - git config user.name "Nobody"
    - git config user.email "nobody@framasoft.org"
Luc Didry's avatar
Luc Didry committed
9
    - git status
10 11
    - git fetch https://framagit.org/Framatophe/manueldumo.git
    - git subtree pull --prefix fr/manueldumo https://framagit.org/Framatophe/manueldumo.git master --squash
12
    - gitbook build
 JosephK's avatar
JosephK committed
13
    - sed -i -e 's/<body>/<body><script src="lang.js" type="text\/javascript"><\/script>/g' _book/index.html
14
    - mv _book/ public/
15 16 17
  artifacts:
    paths:
      - public
Luc Didry's avatar
Luc Didry committed
18
    expire_in: 1 day
19
  only:
 JosephK's avatar
JosephK committed
20
    - master