Skip to content

Commit 95bd753

Browse files
committed
Use bundler cache
1 parent a5de3c3 commit 95bd753

File tree

3 files changed

+3
-45
lines changed

3 files changed

+3
-45
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,6 @@ jobs:
2020
uses: ruby/setup-ruby@v1
2121
with:
2222
ruby-version: ${{ matrix.ruby-version }}
23-
24-
- uses: actions/cache@v4
25-
with:
26-
path: vendor/bundle
27-
key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
28-
restore-keys: |
29-
gems-${{ runner.os }}-${{ matrix.ruby-version }}-
30-
gems-${{ runner.os }}-
31-
32-
- name: Update bundler
33-
run: gem install bundler
34-
35-
- run: bundle config set deployment 'true'
36-
- name: bundle install
37-
run: |
38-
bundle config path vendor/bundle
39-
bundle install --jobs 4 --retry 3
23+
bundler-cache: true
4024

4125
- run: bundle exec middleman build

.github/workflows/deploy.yml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,7 @@ jobs:
1616
uses: ruby/setup-ruby@v1
1717
with:
1818
ruby-version: ${{ env.ruby-version }}
19-
20-
- uses: actions/cache@v4
21-
with:
22-
path: vendor/bundle
23-
key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
24-
restore-keys: |
25-
gems-${{ runner.os }}-${{ matrix.ruby-version }}-
26-
gems-${{ runner.os }}-
27-
28-
- run: bundle config set deployment 'true'
29-
- name: bundle install
30-
run: |
31-
bundle config path vendor/bundle
32-
bundle install --jobs 4 --retry 3
19+
bundler-cache: true
3320

3421
- run: bundle exec middleman build
3522

.github/workflows/dev_deploy.yml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,7 @@ jobs:
1616
uses: ruby/setup-ruby@v1
1717
with:
1818
ruby-version: ${{ env.ruby-version }}
19-
20-
- uses: actions/cache@v4
21-
with:
22-
path: vendor/bundle
23-
key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
24-
restore-keys: |
25-
gems-${{ runner.os }}-${{ matrix.ruby-version }}-
26-
gems-${{ runner.os }}-
27-
28-
- run: bundle config set deployment 'true'
29-
- name: bundle install
30-
run: |
31-
bundle config path vendor/bundle
32-
bundle install --jobs 4 --retry 3
19+
bundler-cache: true
3320

3421
- run: bundle exec middleman build
3522

0 commit comments

Comments
 (0)