actions / cache

Cache dependencies and build outputs in GitHub Actions
MIT License
4.45k stars 1.18k forks source link

Add Hugo resources example #1159

Open rodrigoalcarazdelaosa opened 1 year ago

rodrigoalcarazdelaosa commented 1 year ago

Description

This PR adds an example for caching the resources folder in Hugo builds.

Motivation and Context

Caching the resources folder greatly reduces the building time in Hugo, specially for sites with lots of images.

How Has This Been Tested?

In my own tests, building time is reduced from 4–5 minutes to less than 1 minute. Reducing processing times is always good, at least for the planet 🌱🌍.

Types of changes

Checklist: