File tree 2 files changed +11
-17
lines changed
2 files changed +11
-17
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
# Runs on pushes targeting the default branch
5
5
push :
6
6
branches : ["main"]
7
+ # Runs on pull requests targeting the default branch
8
+ pull_request :
9
+ branches : [ "main" ]
7
10
8
11
# Allows us to run this workflow manually from the Actions tab
9
12
workflow_dispatch :
40
43
- name : Set up Pages
41
44
id : pages
42
45
uses : actions/configure-pages@v2
46
+ - name : Build and test with Rake
47
+ # Only run in pull requests
48
+ if : github.event_name == 'pull_request'
49
+ run : bundle exec rake
43
50
- name : Build with Jekyll
51
+ # Only run on pushes or manual runs
52
+ if : github.event_name == 'push' || github.event_name == 'workflow_dispatch'
44
53
# Outputs to the './_site' directory by default
45
54
run : bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
46
55
env :
51
60
52
61
# Deployment job
53
62
deploy :
63
+ # Only run on pushes or manual runs
64
+ if : github.event_name == 'push' || github.event_name == 'workflow_dispatch'
54
65
environment :
55
66
name : github-pages
56
67
url : ${{ steps.deployment.outputs.page_url }}
You can’t perform that action at this time.
0 commit comments