Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: check and deploy | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- api-docs | ||
tags-ignore: | ||
- 'v*' | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.x | ||
- run: python3 -m pip install -r ./pip-requirements.txt | ||
- uses: ocaml/setup-ocaml@v2 | ||
with: | ||
ocaml-compiler: 4.14.x | ||
dune-cache: false | ||
- name: Install all deps | ||
run: make install | ||
- name: Generate melange docs | ||
run: OPAMVERBOSE=true opam reinstall -y melange --with-doc | ||
- name: Upload Build | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: docs | ||
path: _opam/.opam-switch/build/melange.dev/_build/default/_doc/_html/melange | ||
- name: debug | ||
run: ls -la _opam/.opam-switch/build/melange.dev/_build/default/_doc/_html/melange && ls -la _opam/.opam-switch/build/melange.dev/_build/default/_doc/_html/melange/Js | ||
- name: Copy melange docs | ||
run: cp -r _opam/.opam-switch/build/melange.dev/_build/default/_doc/_html docs | ||
- name: Check Reason syntax | ||
run: make check-reason | ||
- name: Build playground | ||
run: make build-playground | ||
- name: Configure Git user | ||
run: | | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
- run: git fetch origin gh-pages --depth=1 | ||
- run: mike deploy --push unstable |