-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (35 loc) · 1.15 KB
/
deploy-docs.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
name: deploy-docs
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
# Build sphinx in /docs/build
- name: Build Sphinx
run: |
sudo apt-get update
sudo apt-get install graphviz -y
python -m pip install --upgrade pip
python -m pip install .[docs]
export PATH=$HOME/.local/bin:$PATH
make html --directory=docs
touch docs/build/html/.nojekyll
echo 'Visit [Documentation](https://ameli.github.io/ortho/index.html).' > docs/build/html/README.md
# Deploy to github pages
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/build/html
branch: gh-pages