From acb894c4a67964970010e5269935fc3493054069 Mon Sep 17 00:00:00 2001 From: Samuel Mimram Date: Tue, 29 Aug 2023 12:27:53 +0200 Subject: [PATCH] Generate website. --- .github/workflows/build.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 29406bc..5fee0f9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,8 +14,10 @@ jobs: run: opam pin add -n . - name: Install dependencies run: opam depext -yt metrics - - name: Build and test - run: opam install -t . + - name: Build + run: opam install . + - name: Test + run: opam exec dune test - name: Download Liquidsoap data run: git clone -b metrics https://github.com/savonet/liquidsoap.git /tmp/metrics - name: Generate metrics @@ -25,3 +27,11 @@ jobs: with: name: metrics path: metrics.html + - name: Generate website + run: | + mkdir website + cp metrics.html website/index.html + - name: Deploy website + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: website