From 881291c98535763e7e77268caed5b5a8757d49b1 Mon Sep 17 00:00:00 2001 From: Paul Schwarzenberger Date: Tue, 26 Mar 2024 08:05:18 +0000 Subject: [PATCH] Add cache steps --- .github/workflows/website.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index bec69644..449ce1fe 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -27,10 +27,24 @@ jobs: uses: actions/setup-python@v5 with: python-version: 3.12 - + + - name: Set up build cache + uses: actions/cache/restore@v4 + with: + key: mkdocs-material-${{ hashfiles('.cache/**') }} + path: .cache + restore-keys: | + mkdocs-material- + - name: Install dependencies run: | pip install -r requirements-docs.txt - name: Deploy GitHub Pages run: mkdocs gh-deploy --force + + - name: Save build cache + uses: actions/cache/save@v4 + with: + key: mkdocs-material-${{ hashfiles('.cache/**') }} + path: .cache