We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4d079bd + 70fb6c6 commit 00006faCopy full SHA for 00006fa
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:
@@ -193,6 +195,8 @@ jobs:
193
195
194
196
# Deployment job
197
deploy:
198
+ # Only deploy on main branch
199
+ if: github.ref == 'refs/heads/main'
200
environment:
201
name: github-pages
202
url: ${{ steps.deployment.outputs.page_url }}
0 commit comments