From a73756552c5e40f37978a6d30b00293b1a12b678 Mon Sep 17 00:00:00 2001 From: tree Date: Tue, 24 Oct 2023 05:28:19 +0200 Subject: [PATCH] update build --- .github/workflows/deploy.yml | 14 ++++++++++++++ Makefile | 6 ++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 165e4bc..8e79d8f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -32,6 +32,20 @@ jobs: # - name: Build changelog # run: make changelog + + - uses: actions/setup-node@v3 + with: + node-version: 20 + + - name: Install web dependencies + run: cd web && npm ci + + - name: Build web frontend + run: make build-web + + - name: Consolidate build + run: make consolidate + - name: Add custom domain run: "touch output/CNAME && echo \"cd.ethevents.club\" >> output/CNAME" diff --git a/Makefile b/Makefile index 8e971f8..67cdc3e 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,13 @@ .PHONY: all build -all: test build build-web consolidate +all: test build-data test: deno test --unstable --allow-read utils/exec.js -build: +build-all: test build-data build-web consolidate + +build-data: deno run --unstable --allow-read --allow-write utils/exec.js build build-web: