-
Notifications
You must be signed in to change notification settings - Fork 24
39 lines (31 loc) · 1.05 KB
/
generate_documentation.yml
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
32
33
34
35
36
37
38
39
name: Generate and Deploy Documentation
on:
push:
branches:
- main # or your default branch
jobs:
build-documentation:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x' # Specify your Python version
- name: Install pdoc
run: pip install pdoc3 # Install pdoc or pdoc3
- name: Install Dependencies
run: pip install -r requirements.txt # Install your dependencies
- name: Generate Documentation
run: |
pdoc --force --template-dir templates -o docs --html mimir
mv docs/mimir/* docs/
rm -r docs/mimir
- name: Commit and Push Documentation
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add docs/
git commit -m "Update documentation" -a || exit 0 # Exit if nothing to commit
git push