Skip to content

Commit 5d12911

Browse files
Update build.yml
run build on PRs
1 parent 6799f2a commit 5d12911

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build
22

33
on:
4+
pull_request:
45
workflow_dispatch:
56
push:
67
branches:
@@ -39,9 +40,10 @@ jobs:
3940

4041
- name: Add CNAME in dist folder
4142
run: cp CNAME dist
42-
43+
4344
- name: Deploy to GitHub Pages
4445
uses: peaceiris/actions-gh-pages@v3
4546
with:
4647
github_token: ${{ secrets.ACCESS_TOKEN }}
4748
publish_dir: dist
49+
if: github.event_name != 'pull_request'

0 commit comments

Comments
 (0)