Skip to content

Commit 95f6fb2

Browse files
committed
[build] Simplify deploy trigger
1 parent f685470 commit 95f6fb2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/deploy-pages.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: Deploy to GitHub Pages
22
on:
3-
pull_request:
4-
types: [closed]
3+
push:
54
branches:
65
- main
76
workflow_dispatch: # Adds the manual trigger
@@ -12,7 +11,7 @@ permissions:
1211

1312
jobs:
1413
build_v1:
15-
if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && github.event.pull_request.user.login == 'github-actions[bot]')
14+
if: github.event_name == 'workflow_dispatch' || github.actor == 'github-actions[bot]'
1615
runs-on: ubuntu-latest
1716
steps:
1817
- name: Checkout v1 branch
@@ -52,7 +51,7 @@ jobs:
5251
./apps/playground/dist
5352
5453
build_v2:
55-
if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && github.event.pull_request.user.login == 'github-actions[bot]')
54+
if: github.event_name == 'workflow_dispatch' || github.actor == 'github-actions[bot]'
5655
runs-on: ubuntu-latest
5756
steps:
5857
- name: Checkout v2 branch
@@ -92,7 +91,7 @@ jobs:
9291
./apps/playground2/dist
9392
./apps/builder/dist
9493
build_v3:
95-
if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && github.event.pull_request.user.login == 'github-actions[bot]')
94+
if: github.event_name == 'workflow_dispatch' || github.actor == 'github-actions[bot]'
9695
runs-on: ubuntu-latest
9796
steps:
9897
- name: Checkout code repository

0 commit comments

Comments
 (0)