Skip to content

Commit 7810f89

Browse files
committed
Check build of page on PRs, too
1 parent d7edeaa commit 7810f89

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/pages-deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ on:
33
push:
44
branches:
55
- main
6-
- master
6+
paths-ignore:
7+
- .gitignore
8+
- README.md
9+
- LICENSE
10+
11+
pull_request:
712
paths-ignore:
813
- .gitignore
914
- README.md
@@ -62,6 +67,7 @@ jobs:
6267
path: "_site${{ steps.pages.outputs.base_path }}"
6368

6469
deploy:
70+
if: github.ref == 'refs/heads/main'
6571
environment:
6672
name: github-pages
6773
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)