Cache Jekyll Picture Tag generated images in CI#68
Conversation
|
🚀 Preview deployment ready! View your changes at: https://pr-68--reverent-aryabhata-74e98b.netlify.app ✨ Powered by Netlify - auto-updates on every commit and auto-deletes when PR is closed. |
There was a problem hiding this comment.
Pull Request Overview
This PR implements caching for Jekyll Picture Tag generated images across all CI workflows to avoid expensive regeneration of unchanged images on every build.
Key Changes:
- Added
actions/cache@v4step to cache thegenerated/directory in all three Jekyll build workflows - Cache key invalidates when source images (
assets/img/**) or picture configuration (_data/picture.yml) change - Added
generated/to.gitignoreto exclude the cache directory from version control
Reviewed Changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.gitignore |
Added generated/ directory to exclude Jekyll Picture Tag output from version control |
.github/workflows/deploy.yml |
Added image caching step and updated step numbering (Steps 3-6) |
.github/workflows/deploy-pr-preview.yml |
Added image caching step and updated step numbering (Steps 3-7) for PR preview builds |
.github/workflows/build-jekyll.yaml |
Added image caching step after existing dependency cache for the alternative build workflow |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@copilot this change needs to be integrated with the change in deployment method that was merged |
Integrated the caching changes with the latest deployment method. Removed the obsolete Changes in commit 66d1021. |
66d1021 to
c11b5f0
Compare
c11b5f0 to
b1049a4
Compare
Co-authored-by: wintermuted <2337325+wintermuted@users.noreply.github.com>
b1049a4 to
e80ba07
Compare
|
🧹 Preview deployment has been automatically cleaned up by Netlify. |
Jekyll Picture Tag regenerates optimized images on every CI run, wasting time processing unchanged assets.
Changes
actions/cache@v4step to active Jekyll build workflows (deploy.yml,deploy-pr-preview.yml)build-jekyll.yamlworkflow (integrated with latest deployment method from PR Remove deprecated deployment workflow #70)generated/directory where Jekyll Picture Tag outputs processed imagesassets/img/**and_data/picture.ymlto invalidate when source images or config changegenerated/to.gitignoreCache restores on subsequent runs when source images are unchanged, skipping expensive libvips processing.
This PR has been updated to integrate with the deployment method changes merged in PR #70, which removed the legacy
build-jekyll.yamlworkflow.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.