-
Notifications
You must be signed in to change notification settings - Fork 60
54 lines (53 loc) · 1.58 KB
/
gh-pages.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
45
46
47
48
49
50
51
52
53
54
name: github pages
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: rostooling/setup-ros-docker:ubuntu-jammy-latest
steps:
- name: download-deps
run: |
sudo apt update
sudo apt install -y wget
wget https://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
sudo apt update && sudo apt install \
git cmake python3-pydocstyle curl libyaml-cpp-dev -y
- name: workspace
run: |
mkdir -p rmf_ws/src
cd rmf_ws/src
git clone https://github.com/osrf/rmf_core.git
- name: checkout
uses: actions/checkout@v2
with:
path: rmf_ws/src/rmf_fleet_adapter_python
- name: ros-deps
run: |
cd rmf_ws
rosdep update
rosdep install --from-paths src --ignore-src --rosdistro humble -yr
- name: build
shell: bash
run: |
cd rmf_ws
source /opt/ros/humble/setup.bash
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release
- name: gen_docs
shell: bash
run: |
cd rmf_ws/
source install/setup.bash
cd src/rmf_fleet_adapter_python/docs
bash gen_docs.sh
- name: deploy_page
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: rmf_ws/src/rmf_fleet_adapter_python/docs/