File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -18,16 +18,28 @@ jobs:
18
18
steps :
19
19
- name : Checkout
20
20
uses : actions/checkout@v4
21
+ - name : Setup bundler cache
22
+ uses : actions/cache@v3
23
+ with :
24
+ key : ${{ runner.os }}-bundler-${{ hashFiles('Gemfile.lock') }}
25
+ path : .bundle/gems
26
+ - name : Setup build cache
27
+ uses : actions/cache@v3
28
+ with :
29
+ key : ${{ runner.os }}-build
30
+ path : __build
21
31
- name : Setup Ruby
22
32
uses : ruby/setup-ruby@v1
23
33
with :
24
34
ruby-version : ' 3.3'
25
35
- name : Install dependencies
26
- run : bundle install
36
+ run : |
37
+ bundle config set --local path '.bundle/gems'
38
+ bundle install
27
39
- name : Build with Middleman
28
40
run : |
29
41
mkdir __build
30
- BUILD_OUTPUT="__build" middleman build
42
+ BUILD_OUTPUT="__build" bundle exec middleman build
31
43
- name : Generate HTML Preview
32
44
id : html_preview
33
45
uses : pavi2410/html-preview-action@v2
You can’t perform that action at this time.
0 commit comments