Skip to content

Commit

Permalink
Fix GitHub Actions for Jekyll 4.x (daattali#1276)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedantic-git authored Mar 14, 2024
1 parent 18fda2d commit 40e5677
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the site in the jekyll/builder container
run: |
export JEKYLL_VERSION=3.8
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
-e PAGES_REPO_NWO=${{ github.repository }} \
jekyll/builder:$JEKYLL_VERSION /bin/bash -c "chmod 777 /srv/jekyll && jekyll build --future"
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
- name: Install dependencies
run: bundle install && bundle exec appraisal install
- name: Build site
run: bundle exec appraisal jekyll build --future
6 changes: 6 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
appraise "jekyll-3" do
gem "jekyll", "3.9.4"
end
appraise "jekyll-4" do
gem "jekyll", "4.3.3"
end
3 changes: 2 additions & 1 deletion beautiful-jekyll-theme.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
"documentation_uri" => "https://github.com/daattali/beautiful-jekyll#readme"
}

spec.add_runtime_dependency "jekyll", "~> 3.9.3"
spec.add_runtime_dependency "jekyll", ">= 3.9.3"
spec.add_runtime_dependency "jekyll-paginate", "~> 1.1"
spec.add_runtime_dependency "jekyll-sitemap", "~> 1.4"
spec.add_runtime_dependency "kramdown-parser-gfm", "~> 1.1"
Expand All @@ -26,4 +26,5 @@ Gem::Specification.new do |spec|

spec.add_development_dependency "bundler", ">= 1.16"
spec.add_development_dependency "rake", "~> 12.0"
spec.add_development_dependency "appraisal", "~> 2.5"
end

0 comments on commit 40e5677

Please sign in to comment.