From fddf77c8a8e6e8cac6b75b8106a3fef945a2a46e Mon Sep 17 00:00:00 2001 From: Simon Worthington Date: Fri, 30 Aug 2024 19:27:16 +0100 Subject: [PATCH] Pages WIP --- .github/workflows/pages.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/pages.yml diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..f10e20e --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,23 @@ +name: Pages +on: push + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/configure-pages@v3 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + cache-dependency-path: prototypes/basic/package-lock.json + - name: Build site + working-directory: ./prototypes/basic + run: | + coproc npm run dev & + while ! (echo >/dev/tcp/localhost/3000); do sleep 1; done + make -C ../../doc -j all + make -C ../../doc -j all + - name: Upload artifact + uses: actions/upload-pages-artifact@v2