Skip to content

Commit 3d1f9bb

Browse files
committed
Build on PR but don't sync
1 parent 07bd862 commit 3d1f9bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
push:
44
branches:
55
- main
6+
pull_request:
7+
branches:
8+
- "*"
69
repository_dispatch:
710
jobs:
811
publish:
@@ -18,6 +21,7 @@ jobs:
1821
- name: Build website
1922
run: make prod
2023
- name: Sync website with the remote repository
24+
if: ${{ github.ref == 'refs/heads/main' }}
2125
uses: ./.github/actions/sync-repository
2226
with:
2327
local-path: dist/

0 commit comments

Comments
 (0)