forked from cmower/ros_pybullet_interface
-
Notifications
You must be signed in to change notification settings - Fork 14
44 lines (32 loc) · 947 Bytes
/
documentation.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
name: "Build documentation"
on: [push, pull_request]
jobs:
docs:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-versions: 3.9
- run: |
python -m pip install -U sphinx
python -m pip install sphinx-rtd-theme
- run: |
make -C doc clean
make -C doc html
- run: |
cd doc/_build/html/
git init
touch .nojekyll
git add -A
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m 'deploy'
- uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true
directory: ./doc/_build/html