-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (52 loc) · 1.56 KB
/
publish.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Publish
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: |
export PATH="$HOME/.local/bin:$PATH"
sudo apt-get install -y libusb-1.0-0-dev graphviz texlive
wget https://github.com/vovkos/doxyrest/releases/download/doxyrest-2.1.3/doxyrest-2.1.3-linux-amd64.tar.xz
tar -xf doxyrest-2.1.3-linux-amd64.tar.xz
echo "$(pwd)/doxyrest-2.1.3-linux-amd64/bin/" >> $GITHUB_PATH
mkdir doxygen
cd doxygen
git clone https://github.com/doxygen/doxygen.git
cd doxygen
git checkout Release_1_9_2
mkdir build
cd build
cmake ..
cmake --build . -j`nproc`
sudo make install
cd ../../..
./get_openvino_repo.sh
cd openvino/docs
python -m pip install -r requirements.txt
cd openvino_sphinx_theme/
python setup.py install --user
cd ../../..
- name: Build the docs
run: |
export PATH="$HOME/.local/bin:$PATH"
./build_doxygen.sh
./get_doxygen_rst.sh
./get_zoo_models.sh
./get_notebooks.sh
python -m venv .venv
source .venv/bin/activate
./install_dependencies.sh
sphinx-build -b html . _build/html
touch _build/html/.nojekyll
- name: Push the docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/html
publish_branch: latestHTML