Skip to content

Commit 0e4fbab

Browse files
authored
CI: 🚀 📝 Deploy Rocqnavi docs to gh-pages (#1767)
1 parent ee03c03 commit 0e4fbab

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Publish master GitHub Pages
2+
3+
on:
4+
push:
5+
schedule:
6+
- cron: '0 0 * * *' # This cron expression means "at 00:00 (midnight) UTC, every day"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
publish-gh-pages:
13+
runs-on:
14+
- ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
- name: Setup Graphviz
20+
uses: ts-graphviz/setup-graphviz@v2
21+
22+
- name: Set-up OCaml
23+
uses: ocaml/setup-ocaml@v3
24+
with:
25+
ocaml-compiler: 4.14
26+
opam-repositories: |
27+
coq-released: https://coq.inria.fr/opam/released
28+
default: https://github.com/ocaml/opam-repository.git
29+
30+
- name: Build Mathcomp Analysis
31+
run: opam install -y --deps-only . && opam exec -- make -j 4
32+
33+
- name: Install Rocqnavi
34+
run: opam install -y rocq-navi.0.3.1
35+
36+
- name: Generate Documents
37+
run: opam exec -- make html
38+
39+
# Publish GitHub Pages
40+
# Push `gh-pages` branch
41+
- name: Push gh-pages branch
42+
uses: peaceiris/actions-gh-pages@v4
43+
with:
44+
github_token: ${{ secrets.GITHUB_TOKEN }}
45+
publish_dir: ./html
46+
destination_dir: docs/master
47+
# keep_files: true
48+
user_name: github-actions
49+
user_email: [email protected]

0 commit comments

Comments
 (0)