From ddf023d7bb5a39a1682b9e76c1c783edada36bc7 Mon Sep 17 00:00:00 2001 From: Kas-tle <26531652+Kas-tle@users.noreply.github.com> Date: Mon, 11 Mar 2024 18:33:02 +0000 Subject: [PATCH] Test if caching improves build Signed-off-by: GitHub --- .github/workflows/deploy.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2ba490f..48926f7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -34,6 +34,17 @@ jobs: - name: Install dependencies run: yarn install --frozen-lockfile + + - uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 + with: + path: | + ${{ github.workspace }}/.docusaurus + ${{ github.workspace }}/**/.cache + key: | + ${{ runner.os }}-docusaurus-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} + restore-keys: | + ${{ runner.os }}-docusaurus-${{ hashFiles('**/yarn.lock') }} + - name: Build website run: yarn build