Skip to content

Commit 75fb69b

Browse files
authored
Fix GitHub Actions for Jekyll 4.x
1 parent 74f2cd4 commit 75fb69b

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ jobs:
55
name: Build Jekyll
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v4
9-
- name: Build the site in the jekyll/builder container
10-
run: |
11-
export JEKYLL_VERSION=3.8
12-
docker run \
13-
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
14-
-e PAGES_REPO_NWO=${{ github.repository }} \
15-
jekyll/builder:$JEKYLL_VERSION /bin/bash -c "chmod 777 /srv/jekyll && jekyll build --future"
8+
- uses: actions/checkout@v3
9+
- uses: ruby/setup-ruby@v1
10+
with:
11+
ruby-version: '3.3'
12+
- name: Install dependencies
13+
run: bundle install && bundle exec appraisal install
14+
- name: Build site
15+
run: bundle exec appraisal jekyll build --future

Appraisals

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
appraise "jekyll-3" do
2+
gem "jekyll", "3.9.4"
3+
end
4+
appraise "jekyll-4" do
5+
gem "jekyll", "4.3.3"
6+
end

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# frozen_string_literal: true
22

33
source "https://rubygems.org"
4-
gem "ffi", "= 1.16.3"
54

65
gemspec
76

beautiful-jekyll-theme.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
1717
"documentation_uri" => "https://github.com/daattali/beautiful-jekyll#readme"
1818
}
1919

20-
spec.add_runtime_dependency "jekyll", "~> 3.9.3"
20+
spec.add_runtime_dependency "jekyll", ">= 3.9.3"
2121
spec.add_runtime_dependency "jekyll-paginate", "~> 1.1"
2222
spec.add_runtime_dependency "jekyll-sitemap", "~> 1.4"
2323
spec.add_runtime_dependency "kramdown-parser-gfm", "~> 1.1"

0 commit comments

Comments
 (0)