feat(artifacts.yml): add step to setup hugo cache

The commit adds a new step in the workflow to set up a cache for the Hugo static site generator. This cache will store the resources used by the exampleSite, improving the build time by avoiding unnecessary downloads.
This commit is contained in:
Sped0n
2023-11-04 20:18:47 +08:00
parent 49dfd54f23
commit 9dbf73db8f

View File

@@ -62,6 +62,12 @@ jobs:
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-
- name: Setup hugo cache
uses: actions/cache@v3
with:
path: ./exampleSite/resources
key: ${{ runner.os }}-hugo-
- name: Install dependencies
run: pnpm install