fix(build.yml): add restore-keys to cache action to allow fallback to previous cache versions if current cache is not available

This commit is contained in:
Sped0n
2023-11-04 21:30:59 +08:00
parent 8591f596d0
commit ec00898403

View File

@@ -68,7 +68,8 @@ jobs:
uses: actions/cache@v3
with:
path: ./exampleSite/resources
key: ${{ runner.os }}-hugo-
key: ${{ runner.os }}-hugo-${{ hashFiles('./exampleSite') }}
restore-keys: ${{ runner.os }}-hugo-
- name: Install dependencies
run: pnpm install