-
Notifications
You must be signed in to change notification settings - Fork 5
31 lines (26 loc) · 898 Bytes
/
deploy.yml
File metadata and controls
31 lines (26 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Deploy MkDocs to GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install mkdocs-material mkdocs-material-extensions mkdocstrings[python]
pip install -e .
- name: Build and Deploy
working-directory: docs # Set the working directory to 'docs'
env:
PYTHONPATH: ${{ github.workspace }} # Set PYTHONPATH to the root directory
run: |
mkdocs gh-deploy --force