From cfcf4cedca656fce6b3c23eb2e5d7752a9f40b2d Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Sun, 9 Aug 2026 21:39:05 -0400 Subject: [PATCH] Add a caching step for image optimizations --- .github/workflows/jekyll.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml index 5a3bf41..6872dfb 100644 --- a/.github/workflows/jekyll.yml +++ b/.github/workflows/jekyll.yml @@ -43,11 +43,21 @@ jobs: - name: Setup Pages id: pages uses: actions/configure-pages@v5 + - name: Restore optimized images from cache + uses: actions/cache/restore@v4 + with: + path: ./_site/assets/img - name: Build with Jekyll # Outputs to the './_site' directory by default run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" env: JEKYLL_ENV: production + - name: Save images to cache + if: steps.cache-unity.outputs.cache-hit != 'true' + uses: actions/cache/save@v4 + with: + path: ./_site/assets/img + key: images - name: Upload artifact # Automatically uploads an artifact from the './_site' directory by default uses: actions/upload-pages-artifact@v3