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: