Skip to content

Commit

Permalink
Update CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
smimram committed Dec 13, 2023
1 parent df7551c commit 50bb3e4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,31 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup OCaml
uses: avsm/setup-ocaml@v2
with:
ocaml-compiler: 4.14.0
ocaml-compiler: 5.00
- name: Pin locally
run: opam pin -y add -n .
- name: Install locally
run: opam install -y odoc metadata
- name: Build doc
run: opam exec dune build @doc
- name: Deploy doc
uses: JamesIves/github-pages-[email protected]
- name: Upload website artifact
uses: actions/upload-pages-artifact@v2
with:
branch: gh-pages
folder: _build/default/_doc/_html
path: _build/default/_doc/_html
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy website
id: deployment
uses: actions/deploy-pages@v2
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ocaml/setup-ocaml@v2
- name: Checkout
uses: actions/checkout@v4
- name: Setup OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 4.14.0
ocaml-compiler: 5.00
- name: Install required packages
run: sudo apt install ffmpeg
- name: Pin package
Expand Down

0 comments on commit 50bb3e4

Please sign in to comment.