Skip to content

Pages WIP

Pages WIP #12

Workflow file for this run

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: Setup hq
run: |
curl -sL https://github.com/ludovicianul/hq/releases/download/hq-1.3.2/hq_linux_amd64_1.3.2.tar.gz --output - | tar -xzv
- name: Build site
run: |
pushd ./prototypes/basic
npm install
coproc npm run dev &
while ! (echo >/dev/tcp/localhost/3000); do sleep 1; done
popd
pushd ./doc
export HQ=$(realpath ../hq)
make -j all
make -j all
popd
- name: Upload artifact
uses: actions/upload-pages-artifact@v2