ci(docs): skip builds for unrelated pull requests

This commit is contained in:
Daniel Radl 2026-08-19 21:02:09 +02:00
parent 5eadd987e3
commit c370b13dfa
1 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,9 @@ name: Docs / Publish Site
on: on:
pull_request: pull_request:
branches: [main] branches: [main]
paths:
- "docs/**"
- ".github/workflows/docs-publish-site.yml"
merge_group: merge_group:
push: push:
branches: [main] branches: [main]
@ -24,7 +27,7 @@ concurrency:
jobs: jobs:
docs-build: docs-build:
name: Docs / Build (Node ${{ matrix.node-version }}) name: Docs / Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
@ -65,7 +68,7 @@ jobs:
path: docs/.vitepress/dist path: docs/.vitepress/dist
deploy: deploy:
name: Deploy docs name: Docs / Deploy
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
needs: docs-build needs: docs-build
runs-on: ubuntu-latest runs-on: ubuntu-latest