Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

Commit 34e136e

Browse files
committed
try adding gh-pages docs actions workflow
1 parent 3cab1aa commit 34e136e

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/docs.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: docs
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
docs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: checkout
13+
uses: actions/checkout@v2
14+
15+
- name: install opencv
16+
uses: Dovyski/setup-opencv-action@v1
17+
with:
18+
opencv-version: '4.4.0'
19+
20+
- name: set up ocaml
21+
uses: avsm/setup-ocaml@v1
22+
with:
23+
ocaml-version: 4.10.0
24+
25+
- name: install ocaml dependencies
26+
run: opam install ocamlbuild ctypes ctypes-foreign
27+
28+
- name: make docs
29+
run: eval $(opam env) && make docs
30+
31+
- name: deploy to gh-pages
32+
uses: peaceiris/actions-gh-pages@v3
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
publish_dir: ./opencv.docdir
36+
publish_branch: gh-pages
37+
user_name: 'github-actions[bot]'
38+
user_email: 'github-actions[bot]@users.noreply.github.com'

0 commit comments

Comments
 (0)