Skip to content

Documentation

Documentation #40

Workflow file for this run

name: Documentation
on:
workflow_run:
workflows: [CI]
branches: [main]
types: [completed]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# 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 job
build:
runs-on: ubuntu-22.04
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Copy README
run: cp README.md .github/workflows/doc
- name: Build with jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ".github/workflows/doc"
destination: "./jekyll"
- name: Build with qdoc
run: |
builders/Linux/docker-run.sh /mediafx/builders/Linux/build-docs.sh
cp -R jekyll/* build/Linux/doc/
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: build/Linux/doc
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-22.04
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4