We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57e3d78 commit 3251ed5Copy full SHA for 3251ed5
.github/workflows/jekyll.yml
@@ -7,9 +7,10 @@
7
name: Deploy Jekyll site to Pages
8
9
on:
10
- # Runs on pushes targeting the default branch
+ # Runs on pushes targeting the default branch and pull requests
11
push:
12
branches: ["main"]
13
+ pull_request:
14
15
# Allows you to run this workflow manually from the Actions tab
16
workflow_dispatch:
@@ -52,8 +53,9 @@ jobs:
52
53
# Automatically uploads an artifact from the './_site' directory by default
54
uses: actions/upload-pages-artifact@v3
55
- # Deployment job
56
+ # Deployment job (only if triggered by push to main)
57
deploy:
58
+ if: github.event_name == 'push' && github.ref == 'refs/heads/main'
59
environment:
60
name: github-pages
61
url: ${{ steps.deployment.outputs.page_url }}
0 commit comments