name: github pages on: push: branches: - main jobs: deploy: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v3 - name: Use OCaml uses: ocaml/setup-ocaml@v3 with: ocaml-compiler: 5.03.x dune-cache: true allow-prerelease-opam: true - name: Deps run: opam install odig tiny_httpd tiny_httpd_camlzip - name: Build run: opam exec -- odig odoc --cache-dir=_doc/ tiny_httpd tiny_httpd_camlzip - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./_doc/html destination_dir: . enable_jekyll: false #keep_files: true