feat: cache in github actions

This commit is contained in:
2025-03-07 00:58:05 +07:00
parent 387692a6e1
commit 456025b0d8
+10
View File
@@ -41,6 +41,16 @@ jobs:
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Cache Hugo resources
uses: actions/cache@v4
with:
path: |
resources/_gen
.hugo_build.lock
key: ${{ runner.os }}-hugo-resources-${{ hashFiles('**/*.md', '**/*.html', 'config/_default/**/*.yaml', 'config/_default/**/*.yml', 'themes/**') }}
restore-keys: |
${{ runner.os }}-hugo-resources-
- name: Build with Hugo
env:
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache