Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mkdocs ci #67

Merged
merged 2 commits into from
Jul 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading