cache it to the max
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 33m20s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 33m20s
This commit is contained in:
@@ -11,9 +11,26 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: false # Don't fetch submodules yet
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
# Cache the submodule content
|
||||||
|
- name: Cache submodules
|
||||||
|
id: cache-submodules
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
.git/modules
|
||||||
|
themes/blowfish
|
||||||
|
key: ${{ runner.os }}-submodules-${{ hashFiles('.gitmodules') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-submodules-
|
||||||
|
|
||||||
|
# Initialize submodules if cache miss
|
||||||
|
- name: Initialize submodules
|
||||||
|
if: steps.cache-submodules.outputs.cache-hit != 'true'
|
||||||
|
run: git submodule update --init --recursive
|
||||||
|
|
||||||
# Cache Hugo dependencies and modules
|
# Cache Hugo dependencies and modules
|
||||||
- name: Cache Hugo dependencies
|
- name: Cache Hugo dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user