Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
74671ba6cThis file is pinned to the selected release. Download the original to open it in your design tool.
name: Deploy odoc
on:
push:
branches:
- main
jobs:
deploy-doc:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use OCaml 4.14.x
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 4.14.x
- name: Install xvfb and openscad
run: |
sudo apt-get update
sudo apt-get install xvfb
sudo apt-get install openscad
- name: Install dependencies
run: opam install . --deps-only --with-doc
- name: Build docs (with help of dummy X server for snapshots)
run: |
export DISPLAY=:99
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
opam exec -- dune build @doc
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ github.token }}
publish_dir: _build/default/_doc/_html