Merge pull request #3 from uulm-mrm/fix_topic_callback #63
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 Docs to Pages | |
on: | |
push: | |
branches: | |
- $default-branch | |
# TODO: set develop as default | |
- develop | |
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
container: ros:iron | |
steps: | |
- name: Install latex and pip | |
run: sudo apt update && sudo apt install -y texlive texlive-latex-extra texlive-plain-generic python3-pip make ghostscript imagemagick python3-typing-extensions python3-networkx python3-matplotlib | |
- name: Install sphinx | |
run: pip install --upgrade sphinx~=7.0 deepdiff jsonschema sphinx-jsonschema | |
- name: Adjust imagemagick security policy to allow PDF -> PNG conversion | |
run: sudo sed -i '/disable ghostscript format types/,+6d' /etc/ImageMagick-6/policy.xml | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Build orchestrator dependencies | |
run: | | |
. /opt/ros/$ROS_DISTRO/setup.sh | |
cd $GITHUB_WORKSPACE | |
colcon build --packages-up-to orchestrator --packages-skip orchestrator | |
- name: Build docs | |
run: | | |
. /opt/ros/$ROS_DISTRO/setup.sh | |
cd $GITHUB_WORKSPACE | |
. ./install/setup.sh | |
cd docs | |
make -j$(nproc) html | |
- name: Upload Artifact | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: ${{ github.workspace }}/docs/_build/html | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-22.04 | |
needs: build | |
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment | |
permissions: | |
pages: write # to deploy to Pages | |
id-token: write # to verify the deployment originates from an appropriate source | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 |