From f806c62ec74311aed776961be8e2dc05b734c5ba Mon Sep 17 00:00:00 2001 From: David de la Iglesia Castro Date: Wed, 4 Dec 2024 12:40:55 +0100 Subject: [PATCH] enh(docs.yaml): Check for doc failures on pull_request. (#37) * enh(docs.yaml): Check for doc failures on pull_request. * fix syntax --- .github/workflows/docs.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 4e953e3..fd5947f 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -3,6 +3,7 @@ name: Documentation on: push: branches: [main] + pull_request: workflow_dispatch: jobs: @@ -29,6 +30,10 @@ jobs: - name: Install requirements run: pip install -e '.[docs]' - - name: Publish docs + - name: Build docs + if: github.event_name == 'pull_request' + run: mkdocs build -s + - name: Publish docs + if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} run: mkdocs gh-deploy