File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 48
48
if : github.event_name == 'pull_request'
49
49
run : bundle exec rake
50
50
- 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 '
53
53
# Outputs to the './_site' directory by default
54
54
run : bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
55
55
env :
60
60
61
61
# Deployment job
62
62
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 '
65
65
environment :
66
66
name : github-pages
67
67
url : ${{ steps.deployment.outputs.page_url }}
You can’t perform that action at this time.
0 commit comments