mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 03:05:29 -05:00
36 lines
822 B
YAML
36 lines
822 B
YAML
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 tiny_httpd_eio
|
|
|
|
- name: Build
|
|
run: opam exec -- odig odoc --cache-dir=_doc/ tiny_httpd tiny_httpd_camlzip tiny_httpd_eio
|
|
|
|
- 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
|
|
|