From 7d5b1c1563df4dfd9091778aed8319c5f25dbef5 Mon Sep 17 00:00:00 2001 From: Matthew Lopez <73856503+MatthewL246@users.noreply.github.com> Date: Mon, 27 May 2024 23:18:38 -0400 Subject: [PATCH] Add Docusaurus temp directory caching --- .github/workflows/docs.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c751d2f..f5a9c3c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -37,10 +37,17 @@ jobs: - name: Install dependencies run: npm ci - - name: Build the documentation + - name: Cache Docusaurus temp directory + uses: actions/cache@v4 + with: + path: ./docs/.docusaurus + key: docusaurus-cache-${{ runner.os }}-${{ hashFiles('./docs/package-lock.json') }}-${{ github.sha }} + restore-keys: docusaurus-cache-${{ runner.os }}-${{ hashFiles('./docs/package-lock.json') }}- + + - name: Build the documentation site run: npm run build - - name: Upload Pages artifact + - name: Upload GitHub Pages artifact uses: actions/upload-pages-artifact@v3 with: path: ./docs/build