Skip to content

Merge pull request #6 from Khady/dependabot/github_actions/actions/up… #2

Merge pull request #6 from Khady/dependabot/github_actions/actions/up…

Merge pull request #6 from Khady/dependabot/github_actions/actions/up… #2

Workflow file for this run

name: Deploy odoc to GitHub Pages
on:
push:
branches:
- master
permissions: read-all
concurrency:
group: deploy-odoc
cancel-in-progress: true
jobs:
deploy-odoc:
name: Deploy odoc to GitHub Pages
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
contents: read
id-token: write
pages: write
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: "5.1"
dune-cache: true
opam-depext-flags: "--with-doc"
allow-prerelease-opam: 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@v3
with:
path: _build/default/_doc/_html
- name: Deploy odoc to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3