Skip to content

Commit

Permalink
✏️ publish doc on actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Akinori Abe committed Aug 10, 2021
1 parent 0e54bfc commit 65e2b33
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/gh-pages.yaml
@@ -0,0 +1,31 @@
name: gh-pages

on:
push:
branches:
- main
- '*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 4.12.0
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.opam
key: ${{ runner.os }}-opam-${{ hashFiles('**/*.opam') }}
restore-keys: ${{ runner.os }}-opam-
- run: opam install . --deps-only --with-test
- run: opam install odoc
- run: opam exec -- dune build @doc
- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/default/_doc/_html

0 comments on commit 65e2b33

Please sign in to comment.