Skip to content

Commit 9d71804

Browse files
Better bundler caching for GitHub Actions (alshedivat#750)
* Better caching for GitHub Actions * Update `actions/checkout` to `v3`
1 parent dee9225 commit 9d71804

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,14 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v3
1919
- name: Setup Ruby
2020
uses: ruby/setup-ruby@v1
2121
with:
2222
ruby-version: '3.0.2'
23-
- name: Enable bundler cache
24-
uses: actions/cache@v2
25-
with:
26-
path: vendor/bundle
27-
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
28-
restore-keys: |
29-
${{ runner.os }}-gems-
23+
bundler-cache: true
3024
- name: Install deps
3125
run: |
32-
gem install bundler
33-
bundle config path vendor/bundle
34-
bundle install --jobs 4 --retry 3
3526
npm install -g mermaid.cli
3627
- name: Setup deploy options
3728
id: setup

0 commit comments

Comments
 (0)