File: doc.yml

package info (click to toggle)
ocaml-cry 1.0.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 188 kB
  • sloc: ml: 838; ansic: 106; makefile: 7
file content (28 lines) | stat: -rw-r--r-- 611 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Documentation

on:
  push:
    branches:
      - main

jobs:
  build_doc:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout code
      uses: actions/checkout@v2
    - name: Setup OCaml
      uses: avsm/setup-ocaml@v2
      with:
        ocaml-compiler: 4.14.0
    - name: Pin locally
      run: opam pin -y add -n .
    - name: Install locally
      run: opam install -y odoc cry
    - name: Build doc
      run: opam exec dune build @doc
    - name: Deploy doc
      uses: JamesIves/github-pages-deploy-action@4.1.6
      with:
        branch: gh-pages
        folder: _build/default/_doc/_html