From 3e25ceaba0024b6ceaa7c91548d295fcb926a941 Mon Sep 17 00:00:00 2001 From: Chayoung You Date: Tue, 15 Oct 2024 17:14:00 +0900 Subject: [PATCH] Test Jekyll versions --- .github/workflows/main.yml | 33 +++++++++++++++++++-------------- Gemfile | 1 + 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 333b7a76..bf5548fb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ name: CI on: push: branches: - - master + - test-jekyll concurrency: group: "pages" @@ -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 @@ -88,16 +93,16 @@ jobs: css: true skip_git_check: true - deploy: - needs: [build, pa11y-ci, validate] - permissions: - pages: write - id-token: write - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 + # deploy: + # needs: [build, pa11y-ci, validate] + # permissions: + # pages: write + # id-token: write + # environment: + # name: github-pages + # url: ${{ steps.deployment.outputs.page_url }} + # runs-on: ubuntu-latest + # steps: + # - name: Deploy to GitHub Pages + # id: deployment + # uses: actions/deploy-pages@v4 diff --git a/Gemfile b/Gemfile index 866a9680..e44bf777 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,5 @@ source "https://rubygems.org" gemspec +gem "jekyll", ENV["JEKYLL_VERSION"] if ENV["JEKYLL_VERSION"] gem "webrick"