-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (59 loc) · 2.01 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Docs
on:
push:
tags:
- v*.*.*
workflow_dispatch:
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-20.04
steps:
- name: Prepare
run: |
mkdir -p ${{github.workspace}}/src
mkdir -p ${{github.workspace}}/devel
- uses: docker/setup-buildx-action@v3
- name: Checkout
uses: actions/checkout@v4
with:
path: src
submodules: true
- name: Build Docker Image
uses: docker/build-push-action@v5
with:
tags: panda_gazebo:noetic
file: .ci/Dockerfile.noetic
push: false
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Compile ROS package with Catkin Tools
uses: addnab/docker-run-action@v3
with:
image: panda_gazebo:noetic
options: -v ${{github.workspace}}/src:/src/ -v ${{github.workspace}}/devel:/devel/
run: |
rosdep install --from-paths /src --ignore-src --rosdistro noetic -y --simulate # Check if all dependencies were in the Docker File.
apt-get update
rosdep install --from-paths /src --ignore-src --rosdistro noetic -y
catkin config --init --extend /opt/ros/noetic
catkin build --interleave-output --verbose
- name: Build the ROS package documentation
uses: addnab/docker-run-action@v3
with:
image: panda_gazebo:noetic
shell: bash
options: -v ${{github.workspace}}/src:/src/ -v ${{github.workspace}}/devel:/devel/
run: |
. /devel/setup.bash
pip install -r ../src/panda_gazebo/requirements/doc_requirements.txt
rosdoc_lite ../src/panda_gazebo -o ../src/panda_gazebo/docs/build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: src/panda_gazebo/docs/build/html
force_orphan: true