Skip to content

Commit 277d545

Browse files
committed
ci(deploy-docs): enable on PR without uploads
1 parent 11c7870 commit 277d545

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/deploy-docs.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Deploy Docs
22

33
on:
4+
merge_group:
5+
pull_request:
6+
branches:
7+
- "*"
48
push:
59
branches:
610
- stable
@@ -30,6 +34,7 @@ jobs:
3034
mkdir -p ${{ runner.temp }}/book/devel
3135
mkdir -p ${{ runner.temp }}/book/dev-guide
3236
- name: Build user-guide (stable)
37+
if: ${{ !contains('["pull_request", "merge_group"]', github.event_name) }}
3338
run: |
3439
git checkout stable
3540
# Support both old and new directory structure during the transition
@@ -49,6 +54,7 @@ jobs:
4954
mdbook build
5055
mv book ${{ runner.temp }}/book/dev-guide
5156
- name: Deploy to GitHub
57+
if: ${{ !contains('["pull_request", "merge_group"]', github.event_name) }}
5258
run: |
5359
cd ${{ runner.temp }}/book
5460
git init

0 commit comments

Comments
 (0)