Add CI for ROS2. #64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Documentation | |
on: | |
push: | |
branches: [ jazzy ] | |
pull_request: | |
branches: [ jazzy ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup | |
run: | | |
apt-get update && apt-get install -y git doxygen graphviz python3-sphinx python3-breathe python3-sphinx-rtd-theme | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Build documentation | |
run: | | |
cd docs && make html | |
- uses: actions/upload-pages-artifact@v1 | |
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 | |
id: deployment | |
uses: actions/deploy-pages@v4 |