Skip to content

Commit

Permalink
Build: Remove redundnat setup-ruby step
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
Krinkle committed Mar 31, 2024
1 parent a0c1cae commit eb14083
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/github-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
jobs:
deploy:
name: Deploy
# Comes with Ruby 2.7
# https://github.com/actions/runner-images/blob/releases/ubuntu20/20240324/images/ubuntu/Ubuntu2004-Readme.md
runs-on: ubuntu-20.04
env:
DEPLOY_DIR: _site/
Expand All @@ -21,13 +23,6 @@ jobs:
# Clone and checkout existing branch, or initialise with a new and empty branch
git clone --depth 5 --branch "${DEPLOY_BRANCH}" "https://github.com/${GITHUB_REPOSITORY}.git" . || git init -b "${DEPLOY_BRANCH}"
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
# If your site is in a subdirectory
# working-directory: ./

- name: Jekyll build
# If your site is in a subdirectory
# working-directory: ./
Expand Down

0 comments on commit eb14083

Please sign in to comment.