Skip to content

Commit

Permalink
Better bundler caching for GitHub Actions (daattali#750)
Browse files Browse the repository at this point in the history
* Better caching for GitHub Actions

* Update `actions/checkout` to `v3`
  • Loading branch information
rohandebsarkar authored Jul 9, 2022
1 parent dee9225 commit 9d71804
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0.2'
- name: Enable bundler cache
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
bundler-cache: true
- name: Install deps
run: |
gem install bundler
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
npm install -g mermaid.cli
- name: Setup deploy options
id: setup
Expand Down

0 comments on commit 9d71804

Please sign in to comment.