Upload docs to production #22
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: Deploy API Docs | |
on: | |
schedule: | |
# UTC timezone | |
- cron: '0 6 * * *' | |
workflow_dispatch: | |
jobs: | |
test_gazebo: | |
runs-on: ubuntu-latest | |
container: | |
image: ${{ matrix.docker_image }} | |
strategy: | |
fail-fast: false | |
matrix: | |
gazebo_distribution: | |
- citadel | |
- fortress | |
- garden | |
- harmonic | |
include: | |
- docker_image: ubuntu:focal | |
gazebo_distribution: citadel | |
- docker_image: ubuntu:focal | |
gazebo_distribution: fortress | |
- docker_image: ubuntu:focal | |
gazebo_distribution: garden | |
- docker_image: ubuntu:jammy | |
gazebo_distribution: harmonic | |
steps: | |
- uses: actions/checkout@v4 | |
- name: 'Set up Gazebo' | |
uses: gazebo-tooling/setup-gazebo@1f55cec330de851fa373f1ade8ac6b7ddfe6f013 | |
with: | |
required-gazebo-distributions: ${{ matrix.gazebo_distribution }} | |
- name: 'Build Docs' | |
run: | | |
mkdir -p ws/src | |
cd ws/src | |
vcs import --input https://raw.githubusercontent.com/gazebo-tooling/gazebodistro/master/collection-${{ matrix.gazebo_distribution}}.yaml | |
cd .. | |
colcon build --event-handlers console_cohesion+ --cmake-args -DBUILD_DOCS=ON --cmake-target doc --packages-skip-regex sdformat |