File tree 3 files changed +30
-17
lines changed
3 files changed +30
-17
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- main
7
+ pull_request :
8
+ branches :
9
+ - main
7
10
8
11
jobs :
9
- deploy :
10
- runs-on : ubuntu-18.04
12
+ build :
13
+ runs-on : ubuntu-latest
14
+ if : github.ref != 'refs/heads/main'
11
15
steps :
12
16
- uses : actions/checkout@v2
13
17
14
- - name : Set up Ruby 2.6
15
- uses : actions /setup-ruby@v1
18
+ - name : Set up Ruby
19
+ uses : ruby /setup-ruby@v1
16
20
with :
17
- ruby-version : 2.6.x
21
+ ruby-version : 3.1
22
+ bundler-cache : true
23
+
24
+ - name : Build the site
25
+ env :
26
+ JEKYLL_ENV : production
27
+ run : |
28
+ ./bin/data-update
29
+ bundle exec jekyll build
30
+
31
+ deploy :
32
+ runs-on : ubuntu-latest
33
+ if : github.ref == 'refs/heads/main'
34
+ steps :
35
+ - uses : actions/checkout@v2
18
36
19
- - name : Cache gems
20
- uses : actions/cache@preview
37
+ - name : Set up Ruby
38
+ uses : ruby/setup-ruby@v1
21
39
with :
22
- path : vendor/bundle
23
- key : ${{ runner.os }}-gem-${{ hashFiles('Gemfile.lock') }}
24
- restore-keys : |
25
- ${{ runner.os }}-gem-
40
+ ruby-version : 3.1
41
+ bundler-cache : true
26
42
27
43
- name : Build the site
28
44
env :
29
45
JEKYLL_ENV : production
30
46
run : |
31
- gem install bundler -v '~> 2.0'
32
- bundle config path vendor/bundle
33
- make update
34
- bundle config --global frozen 1
35
- bundle install --jobs 4 --retry 3
47
+ ./bin/data-update
36
48
bundle exec jekyll build
37
49
38
50
- name : deploy
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ queue_rules:
2
2
- name : dependabot
3
3
conditions :
4
4
- author=dependabot[bot]
5
+ - status-success=build
6
+ - base=main
5
7
6
8
pull_request_rules :
7
9
- name : automatic merge for Dependabot pull requests
Original file line number Diff line number Diff line change @@ -20,4 +20,3 @@ update:
20
20
21
21
serve : setup
22
22
bundle exec jekyll s --drafts --trace
23
-
You can’t perform that action at this time.
0 commit comments