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
+6 -2
View File
@@ -1,10 +1,10 @@
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:
@@ -12,5 +12,9 @@ jobs:
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
with: with:
python-version: 3.x python-version: 3.x
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache
- run: pip install mkdocs-material - run: pip install mkdocs-material
- run: mkdocs gh-deploy --force - run: mkdocs gh-deploy --force