We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 493253c + 000522d commit 70fb6c6Copy full SHA for 70fb6c6
1 file changed
.github/workflows/deploy-to-pages.yml
@@ -1,9 +1,11 @@
1
name: Deploy to GitHub Pages
2
3
on:
4
- # Runs on pushes targeting the default branch
+ # Runs on pushes to any branch to validate build
5
push:
6
- branches: ["main"]
+
7
+ # Runs on pull requests to validate build
8
+ pull_request:
9
10
# Allows you to run this workflow manually from the Actions tab
11
workflow_dispatch:
@@ -143,6 +145,8 @@ jobs:
143
145
144
146
# Deployment job
147
deploy:
148
+ # Only deploy on main branch
149
+ if: github.ref == 'refs/heads/main'
150
environment:
151
name: github-pages
152
url: ${{ steps.deployment.outputs.page_url }}
0 commit comments