Skip to content

Commit 00006fa

Browse files
authored
Merge branch 'main' into copilot/fix-6
2 parents 4d079bd + 70fb6c6 commit 00006fa

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/deploy-to-pages.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: Deploy to GitHub Pages
22

33
on:
4-
# Runs on pushes targeting the default branch
4+
# Runs on pushes to any branch to validate build
55
push:
6-
branches: ["main"]
6+
7+
# Runs on pull requests to validate build
8+
pull_request:
79

810
# Allows you to run this workflow manually from the Actions tab
911
workflow_dispatch:
@@ -193,6 +195,8 @@ jobs:
193195

194196
# Deployment job
195197
deploy:
198+
# Only deploy on main branch
199+
if: github.ref == 'refs/heads/main'
196200
environment:
197201
name: github-pages
198202
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)