hugo build con caching

This commit is contained in:
Paolo Asperti 2024-07-28 09:39:14 +02:00
parent a276bd1118
commit ba984a1aa7
Signed by: paspo
GPG Key ID: 06D46905D19D5182

View File

@ -19,6 +19,24 @@ jobs:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- uses: actions/cache/restore@v4
with:
path: |
resources
key: bglug-it-hugo-resources
- name: Build Hugo
uses: lowply/build-hugo@v0.129.0
with:
args: --gc --minify --cleanDestinationDir
- uses: actions/cache/save@v4
if: always() # salva in cache anche se la build fallisce
with:
path: |
resources
key: bglug-it-hugo-resources
- name: Set up QEMU
uses: docker/setup-qemu-action@v3