.gitlab-ci.yml 662 Bytes
Newer Older
1
2
# This file is a template, and might need editing before it works on your project.
# Full project: https://gitlab.com/pages/plain-html
Antoine Berchet's avatar
Antoine Berchet committed
3
4
5
6
7
8
9
10
# build:
#   stage: build
#   script:
#     - cd docs
#     - make html
#   artifacts:
#     paths:
#       - build/html
Antoine Berchet's avatar
Antoine Berchet committed
11

12
13
14
pages:
  stage: deploy
  script:
Antoine Berchet's avatar
Antoine Berchet committed
15
16
    - apk --no-cache add py2-pip python-dev
    - pip install sphinx
Antoine Berchet's avatar
Antoine Berchet committed
17
18
    - pip install sphinxcontrib-plantuml
    - pip install sphinx-rtd-theme
Antoine Berchet's avatar
Antoine Berchet committed
19
    - apk --no-cache add make
20
21
22
    - cd docs
    - make html
    - cd ..
Antoine Berchet's avatar
Antoine Berchet committed
23
24
25
    - mkdir .public
    - cp -r docs/build/html .public/
    - mv .public public
Antoine Berchet's avatar
Antoine Berchet committed
26
    - ls public
27
28
  artifacts:
    paths:
Antoine Berchet's avatar
Antoine Berchet committed
29
      - public
30
31
  only:
  - master