Skip to content

Commit eb14083

Browse files
committed
Build: Remove redundnat setup-ruby step
Ubuntu 20.04 comes with Ruby 2.7, same as we were installing. Ubuntu 22.04 comes with Ruby 3.0, which is supported by Jekyll 4.x just fine, same as Ruby 3.1 and Ruby 3.2. As long as we don't use ubuntu-latest for this job, we already control the major+minor version of Ruby by proxy of choosing the Debian package channel (i.e. Ubuntu version).
1 parent a0c1cae commit eb14083

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/github-pages.yaml

+2-7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
jobs:
88
deploy:
99
name: Deploy
10+
# Comes with Ruby 2.7
11+
# https://github.com/actions/runner-images/blob/releases/ubuntu20/20240324/images/ubuntu/Ubuntu2004-Readme.md
1012
runs-on: ubuntu-20.04
1113
env:
1214
DEPLOY_DIR: _site/
@@ -21,13 +23,6 @@ jobs:
2123
# Clone and checkout existing branch, or initialise with a new and empty branch
2224
git clone --depth 5 --branch "${DEPLOY_BRANCH}" "https://github.com/${GITHUB_REPOSITORY}.git" . || git init -b "${DEPLOY_BRANCH}"
2325
24-
- uses: ruby/setup-ruby@v1
25-
with:
26-
ruby-version: 2.7
27-
bundler-cache: true
28-
# If your site is in a subdirectory
29-
# working-directory: ./
30-
3126
- name: Jekyll build
3227
# If your site is in a subdirectory
3328
# working-directory: ./

0 commit comments

Comments
 (0)