Merge pull request #1968 from AMR-Mannesmann/ci(docs)-skip-unrelated-builds
ci(docs): skip builds for unrelated pull requests
This commit is contained in:
commit
2719f343cd
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue