forked from piotrbartman/PySDM-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 745 Bytes
/
pdoc.yml
File metadata and controls
31 lines (29 loc) · 745 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 API docs
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Build
run: |
pip3 install pdoc3
pip install -e .
pip install -r test-time-requirements.txt
python -We -m pdoc --html PySDM_examples
- name: Deploy
if: github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
BRANCH: pdoc
FOLDER: html/PySDM_examples
CLEAN: true