-
Notifications
You must be signed in to change notification settings - Fork 17
67 lines (56 loc) · 1.6 KB
/
deploy.yml
File metadata and controls
67 lines (56 loc) · 1.6 KB
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
57
58
59
60
61
62
63
64
65
66
67
# This is a basic workflow to help you get started with Actions
name: Deploy website to Github Pages
on:
push:
branches:
- master
jobs:
deploy_docs:
runs-on: [ ubuntu-20.04 ]
steps:
- uses: actions/checkout@v2
- name: Build docs
run: |
sudo apt-get update
sudo apt-get install -y\
libboost-all-dev\
pkg-config\
cmake\
curl\
tar\
wget\
python3-dev\
python3-venv\
graphviz\
librange-v3-dev\
libeigen3-dev\
nlohmann-json3-dev\
pybind11-dev\
libfmt-dev\
libgraphviz-dev\
doxygen
# install Served (this must come before any 'pip' calls)
curl -LO https://github.com/meltwater/served/archive/refs/tags/v1.6.0.tar.gz
tar -xzf v1.6.0.tar.gz
pushd served-1.6.0
mkdir build
cd build
cmake ..
sudo make -j `nproc` install
popd
python3 -m venv delphi_venv
source delphi_venv/bin/activate
pip install wheel
# Install a specific version of pyparsing to fix a CI bug
# See https://github.com/pypa/packaging/pull/480
pip install pyparsing==2.4.7
pip install -e .[docs]
pushd docs > /dev/null
make apidocs
make html
popd > /dev/null
- name: Deploy docs to ml4ai.github.io/delphi
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./docs/_build/html