From 66fc7741af5f087dc7cc8fc807967a763490597a Mon Sep 17 00:00:00 2001 From: Matija Pretnar Date: Thu, 22 Oct 2020 14:05:39 +0200 Subject: [PATCH] Generate github pages --- .github/workflows/gh-pages.yml | 27 +++++++++++++++++++++++++++ dune-project | 1 + 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 00000000..4320912a --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,27 @@ +name: github pages + +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Setup OCaml + uses: avsm/setup-ocaml@v1 + + - name: Install Opam packages + run: opam install menhir js_of_ocaml js_of_ocaml-ppx ocamlformat + + - name: Build + run: opam exec -- make release + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs diff --git a/dune-project b/dune-project index 76d3ff1f..d417a8f9 100644 --- a/dune-project +++ b/dune-project @@ -2,6 +2,7 @@ (using menhir 2.1) (generate_opam_files true) +(name eff) (version dev) (source (github matijapretnar/eff)) (homepage "http://www.eff-lang.org/")