chore(ci): migrate gh-pages workflow to setup-ocaml@v2

This commit is contained in:
Fardale 2021-09-27 12:02:57 +02:00 committed by Fardale
parent 800fdf4d5e
commit 2a7bc70bed

View file

@ -7,20 +7,15 @@ on:
jobs: jobs:
deploy: deploy:
name: Deploy doc
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@main - uses: actions/checkout@main
- name: Cache opam - name: Use OCaml
id: cache-opam uses: ocaml/setup-ocaml@v2
uses: actions/cache@v2
with: with:
path: ~/.opam ocaml-compiler: '4.12.x'
key: opam-ubuntu-latest-4.12.0
- uses: avsm/setup-ocaml@v1
with:
ocaml-version: '4.12.0'
- name: Pin - name: Pin
run: opam pin -n . run: opam pin -n .