Skip to content

Commit

Permalink
Add cache steps
Browse files Browse the repository at this point in the history
  • Loading branch information
paulschwarzenberger committed Mar 26, 2024
1 parent fff76fb commit 881291c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 881291c

Please sign in to comment.