Skip to content

Merge pull request #27 from Halbaroth/update-workflows #1

Merge pull request #27 from Halbaroth/update-workflows

Merge pull request #27 from Halbaroth/update-workflows #1

Workflow file for this run

name: Documentation
on:
push:
branches:
- master
env:
OCAML_DEFAULT_VERSION: 5.0.0
OPAMYES: true
jobs:
odoc:
name: Odoc documentation
runs-on: ubuntu-latest
env:
OPAMWITHDOC: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use OCaml ${{ env.OCAML_DEFAULT_VERSION }}
uses: ocaml/setup-ocaml@v2
with:
allow-prerelease-opam: true
ocaml-compiler: ${{ env.OCAML_DEFAULT_VERSION }}
dune-cache: true
- name: Install dependencies
run: opam install . --deps-only --with-doc
- name: Make odoc documentation
run: opam exec -- make doc
- name: Upload documentation
uses: actions/upload-artifact@v4
with:
name: odoc
path: _build/default/_doc/_html/