streamline #15
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: Docs | |
on: [push, workflow_dispatch] | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
env: | |
MESA_SHADER_CACHE_DISABLE: 'true' | |
DISPLAY: ':99.0' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- run: npm install -g @mermaid-js/mermaid-cli | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y xorg libx11-6 libxxf86vm1 libxcursor1 libxi6 \ | |
libxrandr2 libxinerama1 libegl1 libxkbcommon0 libdbus-1-3 pulseaudio \ | |
mesa-utils xvfb | |
- name: Start xvfb | |
run: | | |
/sbin/start-stop-daemon --start --quiet \ | |
--pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background \ | |
--exec /usr/bin/Xvfb -- :99 -screen 0 1280x720x24 -ac +extension GLX | |
- name: Install Project | |
run: make install | |
- name: Generate Docs | |
run: make docs | |
- name: Deploy Docs | |
uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.event_name == 'workflow_dispatch' }} | |
with: | |
publish_branch: gh-pages | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: docs/html/ | |
force_orphan: true |