-
Notifications
You must be signed in to change notification settings - Fork 25
30 lines (29 loc) · 933 Bytes
/
docs.yml
File metadata and controls
30 lines (29 loc) · 933 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
name: Build and Deploy Docs
on: [push]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
- name: Install Python3
uses: actions/setup-python@v2
with:
python-version: '3.6'
- name: Install FFRecord
run: |
pip install numpy torch cmake tqdm pybind11>=2.8
sudo apt install -y libaio-dev
python setup.py install
- name: Install sphinx
run: pip install sphinx sphinx_rtd_theme myst-parser
- name: Build docs
run: |
cd docs
sphinx-apidoc -o ./source ../ffrecord
make clean && make html
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.2.2
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs/build/html # The folder the action should deploy.