From 9dbf73db8f8c7657de67782fbbed97a5fa01e1e6 Mon Sep 17 00:00:00 2001 From: Sped0n Date: Sat, 4 Nov 2023 20:18:47 +0800 Subject: [PATCH] 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. --- .github/workflows/artifacts.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index db25391..7ff1277 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -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