From 76a12c4a0b2b496e471a27d10a72dc473b562614 Mon Sep 17 00:00:00 2001 From: "Andrew S. Rosen" Date: Fri, 12 Jan 2024 21:12:53 -0800 Subject: [PATCH] Update docs.yaml --- .github/workflows/docs.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index dcb9cc6..711bc8a 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -23,7 +23,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.12" cache: pip @@ -35,7 +35,12 @@ jobs: pip install .[docs] - name: Build docs - run: mkdocs build + run: | + if [ "${{ github.event_name }}" == "pull_request" ]; then + mkdocs build --strict + else + mkdocs build + fi id: build_docs - name: Rebuild and deploy docs