build(#16): Add caching to the CI

This commit is contained in:
Josh Creek
2022-10-20 21:39:21 +01:00
parent c13d0e013f
commit f1321cb0ee
+20 -16
View File
@@ -1,16 +1,20 @@
name: ci name: ci
on: on:
push: push:
branches: branches:
- master - master
- main - main
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
with: with:
python-version: 3.x python-version: 3.x
- run: pip install mkdocs-material - uses: actions/cache@v2
- run: mkdocs gh-deploy --force with:
key: ${{ github.ref }}
path: .cache
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force