-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (39 loc) · 1.02 KB
/
deploy.yaml
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
name: AutoMATES documentation deployment
on:
push:
branches:
- master
jobs:
deploy_docs:
runs-on: [ ubuntu-20.04 ]
steps:
- uses: actions/checkout@v2
- name: Build docs with Sphinx
run: |
sudo apt-get update
sudo apt-get -y --no-install-recommends install \
git \
curl \
build-essential \
gcc \
pkg-config \
python3 \
python3-dev \
python3-pip \
python3-venv \
doxygen
python3 -m venv automates_venv
source automates_venv/bin/activate
pip install --upgrade setuptools
pip install wheel
pip install -r requirements.txt
pushd docs > /dev/null
mkdir -p build
make apidocs
make html
popd > /dev/null
- name: Deploy docs to ml4ai.github.io/automates-v2
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./docs/build/html