Skip to content

frontend: Add dashboard templates, version 0.1.0 without server functionality #205

frontend: Add dashboard templates, version 0.1.0 without server functionality

frontend: Add dashboard templates, version 0.1.0 without server functionality #205

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@v3
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://jonas-rem.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"