Skip to content

Merge pull request #264 from nikolaushuber/clean-postcond #68

Merge pull request #264 from nikolaushuber/clean-postcond

Merge pull request #264 from nikolaushuber/clean-postcond #68

Workflow file for this run

name: documentation
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set-up OCaml 5.0
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: "5.0"
dune-cache: true
- name: Install dependencies
run: opam install . --deps-only --with-doc
- name: Build documentation
run: opam exec -- dune build @doc
- name: Set-up Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: _build/default/_doc/_html
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
steps:
- name: Deploy odoc to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3