From 71b36c54c0c0bb9f3129c8159e64698196c9da91 Mon Sep 17 00:00:00 2001 From: Chayoung You Date: Tue, 15 Oct 2024 20:51:23 +0900 Subject: [PATCH] Run build CI also with Jekyll < 4.0 --- .github/workflows/main.yml | 6 ++++++ Gemfile | 2 ++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 333b7a76..4918f187 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,6 +12,11 @@ concurrency: jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + jekyll: ["< 4.0", "< 5.0"] + env: + JEKYLL_VERSION: ${{ matrix.jekyll }} steps: - name: Checkout uses: actions/checkout@v4 @@ -28,6 +33,7 @@ jobs: env: JEKYLL_ENV: production - name: Upload artifact + if: ${{ matrix.jekyll == "< 5.0" }} uses: actions/upload-pages-artifact@v3 pa11y-ci: diff --git a/Gemfile b/Gemfile index 866a9680..39e5ae10 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,6 @@ source "https://rubygems.org" gemspec +gem "jekyll", ENV["JEKYLL_VERSION"] if ENV["JEKYLL_VERSION"] +gem "kramdown-parser-gfm" if ENV["JEKYLL_VERSION"] == "< 4.0" gem "webrick"