Update mkdocs ci (#67)

This commit is contained in:
David Okpare
2023-07-22 09:32:01 +01:00
committed by GitHub
parent d3ab206aa5
commit a06e4e5172
2 changed files with 27 additions and 6 deletions
+24 -4
View File
@@ -8,6 +8,9 @@ on:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
@@ -16,7 +19,24 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Deploy MkDocs
uses: mhausenblas/mkdocs-deploy-gh-pages@1.26
env:
requirements: requirements-doc.txt
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Store cache_id
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- name: Setup cache
uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Install Requirements
run: pip install -r requirements-doc.txt
- name: Build and deploy MkDocs
run: mkdocs gh-deploy --force
+3 -2
View File
@@ -1,7 +1,8 @@
mkdocs-material
mkdocs-material
pillow
cairosvg
mkdocstrings
mkdocstrings-python
termynal
openai
pydantic
pytest