Skip to content

Commit

Permalink
Update mkdocs ci (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveOkpare authored Jul 22, 2023
1 parent d3ab206 commit a06e4e5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branches:
- main

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -16,7 +19,24 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Deploy MkDocs
uses: mhausenblas/[email protected]
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
5 changes: 3 additions & 2 deletions requirements-doc.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
mkdocs-material
mkdocs-material
pillow
cairosvg
mkdocstrings
mkdocstrings-python
termynal
openai
pydantic
pytest

0 comments on commit a06e4e5

Please sign in to comment.