Skip to content

Commit 1d7d7cf

Browse files
committed
Update the ruby setup in gh-actions
1 parent dff8e09 commit 1d7d7cf

File tree

3 files changed

+5
-19
lines changed

3 files changed

+5
-19
lines changed

.github/workflows/pages-deploy.yml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,17 @@ jobs:
1313

1414
runs-on: ubuntu-latest
1515

16-
env:
17-
GEMS_PATH: ~/vendor/bundle
18-
1916
steps:
2017
- name: Checkout
2118
uses: actions/checkout@v2
2219
with:
2320
fetch-depth: 0 # for posts's lastmod
2421

2522
- name: Setup Ruby
26-
uses: actions/setup-ruby@v1
23+
uses: ruby/setup-ruby@v1
2724
with:
2825
ruby-version: 2.7
29-
30-
- name: Bundle Caching
31-
uses: actions/cache@v2
32-
with:
33-
path: ${{ env.GEMS_PATH }}
34-
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
35-
restore-keys: |
36-
${{ runner.os }}-gems-
37-
38-
- name: Bundle Install
39-
run: |
40-
bundle config path ${{ env.GEMS_PATH }}
41-
bundle install --jobs 4 --retry 3
26+
bundler-cache: true
4227

4328
- name: Check baseurl
4429
run: |

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
.*
33
!.github
44

5-
# jekyll cache
5+
# bundler cache
66
_site
77
vendor
8+
Gemfile.lock
89

910
# rubygem
1011
*.gem

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ $tab-count: {{ site.tabs | size | plus: 1 }};
6060

6161
### Publishing to GitHub Pages
6262

63-
See the `jekyll-theme-chirpy`'s [deployment instructions](https://github.com/cotes2020/jekyll-theme-chirpy#deployment). Note that in order to use GitHub Actions caching to speed up the deployment, you should add the `Gemfile.lock` file to your repository.
63+
See the [deployment instructions](https://github.com/cotes2020/jekyll-theme-chirpy#deployment) of `jekyll-theme-chirpy`.
6464

6565
### Updating
6666

0 commit comments

Comments
 (0)