Change workflow
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 23m59s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 23m59s
This commit is contained in:
@@ -29,16 +29,14 @@ jobs:
|
|||||||
hugo-version: "latest"
|
hugo-version: "latest"
|
||||||
extended: true
|
extended: true
|
||||||
|
|
||||||
# Cache the Hugo build output
|
# Cache resources but not public to prevent infinite loops
|
||||||
- name: Cache Hugo build
|
- name: Cache Hugo resources
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: resources/_gen
|
||||||
public
|
key: ${{ runner.os }}-hugo-resources-${{ hashFiles('content/**', 'layouts/**', 'static/**', 'themes/**', 'config/**') }}
|
||||||
resources/_gen
|
|
||||||
key: ${{ runner.os }}-hugo-build-${{ hashFiles('content/**', 'layouts/**', 'static/**', 'themes/**', 'config/**') }}
|
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-hugo-build-
|
${{ runner.os }}-hugo-resources-
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: hugo --minify --buildFuture
|
run: hugo --minify --buildFuture
|
||||||
|
|||||||
Reference in New Issue
Block a user