Skip to content

Commit

Permalink
Github Actions Setup (#1)
Browse files Browse the repository at this point in the history
* add odoc github action

* add write permission for odoc workflow

* only build pages on main
  • Loading branch information
just-max authored Jul 6, 2023
1 parent 51aa73f commit acc8497
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/odoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy odoc

on:
push:
branches:
- main

jobs:
deploy-doc:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout tree
uses: actions/checkout@v3

- name: Set-up OCaml 5.0
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: "5.0"
dune-cache: true

- name: Deploy odoc to GitHub Pages
uses: ocaml/setup-ocaml/deploy-doc@v2

0 comments on commit acc8497

Please sign in to comment.