Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
Update ruby setup actions (fix cotes2020#306)
Browse files Browse the repository at this point in the history
No longer tracking Gemfile.lock
  • Loading branch information
cotes2020 committed Mar 31, 2021
1 parent c553d2a commit b6d27cd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 159 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,32 +24,17 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest]

env:
GEMS_PATH: vendor/bundle

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # for posts's lastmod

- name: Setup Ruby
uses: actions/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7

- name: Bundle Caching
uses: actions/cache@v2
with:
path: ${{ env.GEMS_PATH }}
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Bundle Install
run: |
bundle config path ${{ env.GEMS_PATH }}
bundle install --jobs 4 --retry 3
bundler-cache: true

- name: Build Site
env:
Expand Down
19 changes: 2 additions & 17 deletions .github/workflows/pages-deploy.yml.hook
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,17 @@ jobs:

runs-on: ubuntu-latest

env:
GEMS_PATH: vendor/bundle

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # for posts's lastmod

- name: Setup Ruby
uses: actions/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7

- name: Bundle Caching
uses: actions/cache@v2
with:
path: ${{ env.GEMS_PATH }}
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-

- name: Bundle Install
run: |
bundle config path ${{ env.GEMS_PATH }}
bundle install --jobs 4 --retry 3
bundler-cache: true

- name: Check baseurl
run: |
Expand Down
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
.*
!.github

# jekyll cache
# bundler cache
_site
vendor
Gemfile.lock

# rubygem
*.gem
# yard docs
doc

# npm dependencies
node_modules
Expand Down
122 changes: 0 additions & 122 deletions Gemfile.lock

This file was deleted.

0 comments on commit b6d27cd

Please sign in to comment.