add generated cache
parent
42fad05654
commit
f201afb1a0
|
@ -51,6 +51,7 @@ jobs:
|
||||||
uses: actions/deploy-pages@v1
|
uses: actions/deploy-pages@v1
|
||||||
deploy-mtfwiki-dot-com:
|
deploy-mtfwiki-dot-com:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
needs: build-mtf-dot-wiki
|
||||||
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
|
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -62,6 +63,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 --baseURL https://mtfwiki.com
|
run: hugo --minify --enableGitInfo --baseURL https://mtfwiki.com
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
|
|
Loading…
Reference in New Issue