Skip to content
Snippets Groups Projects
Commit 4c366152 authored by Moul's avatar Moul
Browse files

[ci] #165: Simplify the commands to build the doc

Build directly into public folder without cd
Remove make usage, which can be uninstalled from the images
`make` was used from the Makefile in 'duniterpy' folder
and from Sphinx doc generation into `docs' folder

Keep Sphinx installed in the job
Was installed in the image to speed-up the job,
but that’s a job run not that often, so, that’s fine
It’s better to keep control over Sphinx version from pyproject.toml

Add artifact expiration
parent 5d98c259
No related branches found
No related tags found
1 merge request!170#165, #182: Stop using the Makefile in the CI and tools installed from Poetry dev dependencies in favor of pre-commit, Bump Sphinx to v4
...@@ -147,13 +147,13 @@ pages: ...@@ -147,13 +147,13 @@ pages:
stage: publish_doc stage: publish_doc
script: script:
- poetry install - poetry install
- make docs - poetry run sphinx-apidoc -o docs .
- mv docs/_build/html public - poetry run sphinx-build -b html docs public
- ls public
artifacts: artifacts:
untracked: true untracked: true
paths: paths:
- public - public
expire_in: 2 days
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
when: manual when: manual
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment