Skip to content

Commit

Permalink
Add Docusaurus temp directory caching
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewL246 committed May 28, 2024
1 parent 77042ee commit 7d5b1c1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d5b1c1

Please sign in to comment.