Skip to content

Commit 2141dc8

Browse files
committed
Cache gems between docs generation runs
1 parent 2af1fe3 commit 2141dc8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/docs.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,16 @@ jobs:
1919
access_token: ${{ github.token }}
2020
workflow_id: 1778578
2121
- uses: actions/checkout@v2
22-
- uses: actions/setup-ruby@v1
23-
- name: Bundler Install
22+
- uses: actions/cache@v2
23+
with:
24+
path: vendor/bundle
25+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
26+
restore-keys: |
27+
${{ runner.os }}-gems-
28+
- name: Install Bundler
2429
run: |
2530
gem install bundler
31+
bundle config path vendor/bundle
2632
bundle install --jobs 4 --retry 3
2733
- name: Generate Jazzy Docs
2834
run: jazzy

0 commit comments

Comments
 (0)