-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (48 loc) · 1.3 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
name: Documentation
on:
push:
branches: [ jazzy ]
pull_request:
branches: [ jazzy ]
jobs:
build:
runs-on: ubuntu-latest
container:
image: ros:jazzy-ros-base
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup
run: |
sudo apt-get update && sudo apt-get install -y git doxygen graphviz python3-sphinx python3-breathe python3-sphinx-rtd-theme
- uses: ros-tooling/setup-ros@v0.7
with:
required-ros-distributions: jazzy
- uses: ros-tooling/action-ros-ci@v0.3
with:
package-name: hector_math hector_math_py
target-ros2-distro: jazzy
skip-tests: true
- name: Build documentation
run: |
. ../../install/setup.sh && cd docs && make html
- uses: actions/upload-pages-artifact@v4
with:
name: github-pages
path: docs/_build/html
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
if: github.event_name != 'pull_request'
id: deployment
uses: actions/deploy-pages@v4