diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c05c8ffb..a3b40925 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -27,10 +27,6 @@ jobs: build-docs: runs-on: ubuntu-latest - defaults: - run: - working-directory: docs - steps: - name: Print inputs if: github.event_name == 'workflow_dispatch' @@ -50,14 +46,17 @@ jobs: cache: 'pip' - run: pip install -r requirements.txt + working-directory: docs - name: Build Docs and Capture Warnings id: build_docs + working-directory: docs run: | mkdocs build 2>&1 | tee mkdocs-output.log - name: Annotate Warnings and Errors if: always() && steps.build_docs.outcome != 'skipped' + working-directory: docs run: | warnings=$(grep -i 'WARNING' mkdocs-output.log || true) errors=$(grep -i 'ERROR' mkdocs-output.log || true) @@ -81,4 +80,5 @@ jobs: - name: Deploy to GitHub Pages if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' && github.event.inputs.deploy == 'true' + working-directory: docs run: mkdocs gh-deploy --force