Skip to content

Update: Finalise all generic_resource_modelling #263

Update: Finalise all generic_resource_modelling

Update: Finalise all generic_resource_modelling #263

Workflow file for this run

name: Build Sphinx Doc
on:
pull_request:
jobs:
build-doc:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Packages
run: |
sudo apt-get update
sudo apt-get install default-jre plantuml jq tox texlive-latex-extra texlive-xetex latexmk python3-pip -y
- name: Build static site with Tox
run: |
cd doc
tox -e py3-html
tox -e py3-pdf
- name: Deploy Preview
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: doc/build/html
destination_dir: 'previews/${{ github.event.number }}'
- name: Create status check with preview link
run: |
PREVIEW_URL="https://flownexus-lwm2m.github.io/flownexus/previews/${{ github.event.number }}"
PAYLOAD=$(echo '{}' | jq --arg name 'Documentation Preview' --arg url "${PREVIEW_URL}" '{"name": $name, "head_sha": "${{ github.event.pull_request.head.sha }}", "details_url": $url, "status": "completed", "conclusion": "success", "output": {"title": $name, "summary": "Preview available at", "text": $url}}')
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Content-Type: application/json" \
-X POST -d "${PAYLOAD}" \
"https://api.github.com/repos/${{ github.repository }}/check-runs"