Skip to content

Commit 3c6e49f

Browse files
committed
Update jekyll.yml
1 parent ee951f3 commit 3c6e49f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: .github/workflows/jekyll.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ jobs:
4848
if: github.event_name == 'pull_request'
4949
run: bundle exec rake
5050
- name: Build with Jekyll
51-
# Only run on pushes or manual runs
52-
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
51+
# Don't run in pull requests
52+
if: github.event_name != 'pull_request'
5353
# Outputs to the './_site' directory by default
5454
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
5555
env:
@@ -60,8 +60,8 @@ jobs:
6060

6161
# Deployment job
6262
deploy:
63-
# Only run on pushes or manual runs
64-
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
63+
# Only run on pushes to the default branch
64+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
6565
environment:
6666
name: github-pages
6767
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)