From e31b7f01fdda048becca4d942f7d450c8405ca71 Mon Sep 17 00:00:00 2001 From: ivanpoh99 <130283322+ivanpoh11@users.noreply.github.com> Date: Mon, 25 May 2026 23:13:22 +0800 Subject: [PATCH] Add CI workflow for Jekyll site using Docker This workflow automates the CI process for the Jekyll site, ensuring builds occur on pushes and pull requests to the main branch. --- .github/workflows/jekyll-docker.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/jekyll-docker.yml diff --git a/.github/workflows/jekyll-docker.yml b/.github/workflows/jekyll-docker.yml new file mode 100644 index 00000000000..3d0eedb4ce2 --- /dev/null +++ b/.github/workflows/jekyll-docker.yml @@ -0,0 +1,20 @@ +name: Jekyll site CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build the site in the jekyll/builder container + run: | + docker run \ + -v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \ + jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"