-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (28 loc) · 817 Bytes
/
deploy_docs.yml
File metadata and controls
31 lines (28 loc) · 817 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: Generate and Deploy Documentation
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pdoc3
pip install -r requirements.txt
- name: Generate documentation
run: |
cd docs
pdoc --html --output-dir . reviewit-ai
- name: Deploy documentation to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.