2021-12-02 20:47:10 -06:00
|
|
|
image: python:3.7-alpine
|
2021-07-16 18:00:08 -05:00
|
|
|
|
2021-12-02 20:47:10 -06:00
|
|
|
test:
|
|
|
|
stage: test
|
2021-07-16 18:00:08 -05:00
|
|
|
script:
|
2021-12-02 20:47:10 -06:00
|
|
|
- pip install -U sphinx
|
|
|
|
- mkdir -p public/{es,en}
|
|
|
|
- sphinx-build -b html ./docs/es/source/ public/es
|
|
|
|
- sphinx-build -b html ./docs/en/source/ public/en
|
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
|
|
|
|
|
|
|
|
pages:
|
|
|
|
stage: deploy
|
|
|
|
script:
|
|
|
|
- pip install -U sphinx
|
|
|
|
- mkdir -p public/{es,en}
|
|
|
|
- sphinx-build -b html ./docs/es/source/ public/es
|
|
|
|
- sphinx-build -b html ./docs/en/source/ public/en
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
|