mirror of
https://github.com/tiennm99/miti99.git
synced 2026-08-18 04:27:57 +00:00
feat: cache in github actions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user