add generated cache

pull/725/head
Septs 2023-01-20 13:59:27 +08:00
parent 50d7975056
commit 42fad05654
No known key found for this signature in database
GPG Key ID: 65144037AFA516E1
2 changed files with 12 additions and 2 deletions

View File

@ -23,6 +23,12 @@ jobs:
with:
hugo-version: latest
extended: true
- name: Generated Cache
uses: actions/cache@v3
with:
path: resources/_gen
key: ${{ runner.os }}-generated-${{ hashFiles('**') }}
restore-keys: ${{ runner.os }}-generated
- name: Build
run: hugo --minify --enableGitInfo
- name: Upload artifact

View File

@ -16,12 +16,16 @@ jobs:
with:
submodules: true
fetch-depth: 0
# - uses: actions/setup-node@v2
# - run: npx markdownlint-cli .
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: latest
extended: true
- name: Generated Cache
uses: actions/cache@v3
with:
path: resources/_gen
key: ${{ runner.os }}-generated-${{ hashFiles('**') }}
restore-keys: ${{ runner.os }}-generated
- name: Build
run: hugo --minify