-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.17 KB
/
doc.yml
File metadata and controls
47 lines (40 loc) · 1.17 KB
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
name: Publish Documentation
on:
push:
branches: [ master ]
jobs:
build-native:
runs-on: ubuntu-20.04
container:
image: swarmus/embedded
steps:
- name: Create catkin_ws
run: |
mkdir -p catkin_ws/src
cd catkin_ws
. /opt/ros/$ROS_DISTRO/setup.sh
catkin_make
- name: Checkout repository
uses: actions/checkout@v2
with:
path: 'catkin_ws/src/SwarmUS-ROS'
- name: Checkout submodules
run: git submodule update --init --recursive
working-directory: 'catkin_ws/src/SwarmUS-ROS'
- name: Generate Documentation
run: |
. ./devel/setup.sh
python src/SwarmUS-ROS/tools/generate_doc.py doc
working-directory: 'catkin_ws'
- name: Prepare Publish Step
run: |
apt-get update && apt-get install -y rsync
- name: Publish Documentation
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: catkin_ws/doc
TARGET_FOLDER: docs
CLEAN: true
SINGLE_COMMIT: true