Loading .gitlab-ci.yml +12 −11 Original line number Diff line number Diff line Loading @@ -18,9 +18,9 @@ cache: # - venv/ stages: - deploy_docs - setup_and_format - lint # Does not modify code - deploy_docs - auto_commit # Job 1: Install ${PROJECT} and its dependencies Loading Loading @@ -132,21 +132,22 @@ pages: stage: deploy_docs tags: - git-run-ia2 needs: - job: apply_autopep8 artifacts: true before_script: - pip install --upgrade pip # Install project so Sphinx can import it - pip install -e . # Install doc dependencies - pip install -r docs/requirements.txt script: - echo "Current directory $(pwd)" - echo "Building docs..." - sphinx-apidoc -o docs/source noctua - sphinx-build -b html docs/source docs/public/html - echo "Building documentation..." - sphinx-apidoc -o docs/source ${PROJECT} # The final output directory MUST be named 'public' for GitLab Pages - sphinx-build -b html docs/source public artifacts: paths: - . # Pass the modified workspace # - public - public rules: # Only run on the default branch - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Job 7: commit in branch Loading Loading
.gitlab-ci.yml +12 −11 Original line number Diff line number Diff line Loading @@ -18,9 +18,9 @@ cache: # - venv/ stages: - deploy_docs - setup_and_format - lint # Does not modify code - deploy_docs - auto_commit # Job 1: Install ${PROJECT} and its dependencies Loading Loading @@ -132,21 +132,22 @@ pages: stage: deploy_docs tags: - git-run-ia2 needs: - job: apply_autopep8 artifacts: true before_script: - pip install --upgrade pip # Install project so Sphinx can import it - pip install -e . # Install doc dependencies - pip install -r docs/requirements.txt script: - echo "Current directory $(pwd)" - echo "Building docs..." - sphinx-apidoc -o docs/source noctua - sphinx-build -b html docs/source docs/public/html - echo "Building documentation..." - sphinx-apidoc -o docs/source ${PROJECT} # The final output directory MUST be named 'public' for GitLab Pages - sphinx-build -b html docs/source public artifacts: paths: - . # Pass the modified workspace # - public - public rules: # Only run on the default branch - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Job 7: commit in branch Loading