From b872ec4b6b77ad628f850ac5488759cedcc23335 Mon Sep 17 00:00:00 2001 From: Mark Scherer Date: Wed, 11 Nov 2026 00:12:40 +0100 Subject: [PATCH] Build the docs on pull requests The docs workflow only ran on push to the default branch, so a dependency bump that breaks the docs build merged green and only failed after merge. PRs touching the docs now run the build; deploy steps stay push-only. --- .github/workflows/deploy-docs.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 0582821a..ed2716b3 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -7,6 +7,10 @@ on: paths: - 'docs/**' - '.github/workflows/deploy-docs.yml' + pull_request: + paths: + - 'docs/**' + - '.github/workflows/deploy-docs.yml' workflow_dispatch: permissions: @@ -15,7 +19,7 @@ permissions: id-token: write concurrency: - group: pages + group: pages-${{ github.event_name == 'pull_request' && github.ref || 'deploy' }} cancel-in-progress: false jobs: @@ -35,6 +39,7 @@ jobs: cache-dependency-path: docs/package-lock.json - name: Setup Pages + if: github.event_name != 'pull_request' uses: actions/configure-pages@v6 - name: Install dependencies @@ -46,11 +51,13 @@ jobs: working-directory: docs - name: Upload artifact + if: github.event_name != 'pull_request' uses: actions/upload-pages-artifact@v5 with: path: docs/.vitepress/dist deploy: + if: github.event_name != 'pull_request' environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }}