File tree 2 files changed +26
-4
lines changed
2 files changed +26
-4
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
- mkdir __build
30
- BUILD_OUTPUT="__build" middleman build
41
+ mkdir -p __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
Original file line number Diff line number Diff line change @@ -37,11 +37,21 @@ jobs:
37
37
uses : ruby/setup-ruby@v1
38
38
with :
39
39
ruby-version : ' 3.3'
40
+ - name : Setup bundler cache
41
+ uses : actions/cache@v3
42
+ with :
43
+ key : ${{ runner.os }}-bundler-${{ hashFiles('Gemfile.lock') }}
44
+ path : .bundle/gems
45
+ - name : Setup build cache
46
+ uses : actions/cache@v3
47
+ with :
48
+ key : ${{ runner.os }}-source-build
49
+ path : __source_build
40
50
- name : Install dependencies
41
51
run : bundle install
42
52
- name : Build with Middleman
43
53
run : |
44
- mkdir __source_build
54
+ mkdir -p __source_build
45
55
BUILD_OUTPUT="__source_build" middleman build
46
56
- name : Set CNAME
47
57
run : echo "rspec.info" > CNAME
You can’t perform that action at this time.
0 commit comments