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"
|
||||
extended: true
|
||||
|
||||
# Cache the Hugo build output
|
||||
- name: Cache Hugo build
|
||||
# Cache resources but not public to prevent infinite loops
|
||||
- name: Cache Hugo resources
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
public
|
||||
resources/_gen
|
||||
key: ${{ runner.os }}-hugo-build-${{ hashFiles('content/**', 'layouts/**', 'static/**', 'themes/**', 'config/**') }}
|
||||
path: resources/_gen
|
||||
key: ${{ runner.os }}-hugo-resources-${{ hashFiles('content/**', 'layouts/**', 'static/**', 'themes/**', 'config/**') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-hugo-build-
|
||||
${{ runner.os }}-hugo-resources-
|
||||
|
||||
- name: Build
|
||||
run: hugo --minify --buildFuture
|
||||
|
||||
Reference in New Issue
Block a user