add generated cache
parent
50d7975056
commit
42fad05654
|
@ -23,6 +23,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
hugo-version: latest
|
hugo-version: latest
|
||||||
extended: true
|
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
|
- name: Build
|
||||||
run: hugo --minify --enableGitInfo
|
run: hugo --minify --enableGitInfo
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
|
|
|
@ -16,12 +16,16 @@ jobs:
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
# - uses: actions/setup-node@v2
|
|
||||||
# - run: npx markdownlint-cli .
|
|
||||||
- name: Setup Hugo
|
- name: Setup Hugo
|
||||||
uses: peaceiris/actions-hugo@v2
|
uses: peaceiris/actions-hugo@v2
|
||||||
with:
|
with:
|
||||||
hugo-version: latest
|
hugo-version: latest
|
||||||
extended: true
|
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
|
- name: Build
|
||||||
run: hugo --minify
|
run: hugo --minify
|
||||||
|
|
Loading…
Reference in New Issue