From b52919ebfe2d92b63d8d95f40b1393e8f2981d31 Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Wed, 5 Aug 2026 13:22:33 -0500 Subject: [PATCH] update matrix --- .github/workflows/website.yml | 29 ++++++++++++++++++++++------- package.json | 1 + packages/website/astro.config.ts | 12 +----------- packages/website/package.json | 8 ++++---- 4 files changed, 28 insertions(+), 22 deletions(-) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 6c2254b23..3398956f9 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -36,21 +36,36 @@ env: jobs: build: name: Build website + runs-on: ubuntu-latest + + strategy: + matrix: + chunk: [default, api] + steps: - - uses: actions/checkout@v6 + - name: Checkout + uses: actions/checkout@v6 with: submodules: recursive token: ${{ secrets.GH_TOKEN }} - - uses: oven-sh/setup-bun@v2 - - uses: arduino/setup-protoc@v3 + + - name: Setup bun + uses: oven-sh/setup-bun@v2 + + - name: Setup protoc + uses: arduino/setup-protoc@v3 with: repo-token: ${{ secrets.GH_TOKEN }} - - uses: actions/configure-pages@v6 - - run: bun run setup - - name: Build website - run: bun run build:website + - name: Configure pages + uses: actions/configure-pages@v6 + + - name: Install dependencies + run: bun install + + - name: Build + run: bun run build - name: Upload artifact uses: actions/upload-pages-artifact@v5 diff --git a/package.json b/package.json index 4d5cfbcd0..1e63fe21c 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "private": true, "scripts": { "dev": "cd packages/website && bun run dev", + "build": "cd packages/website && bun run build", "build:averages": "cd packages/scripts && bun run build:averages" }, "type": "module", diff --git a/packages/website/astro.config.ts b/packages/website/astro.config.ts index 89243fbbf..b38d10811 100644 --- a/packages/website/astro.config.ts +++ b/packages/website/astro.config.ts @@ -1,4 +1,3 @@ -import node from "@astrojs/node"; import react from "@astrojs/react"; import { wrapper } from "@blitzkit/i18n"; import locales from "@blitzkit/i18n/locales.json"; @@ -10,14 +9,6 @@ import { defineConfig } from "astro/config"; import packageJSON from "../../package.json"; import { tools } from "./src/constants/tools"; -const POSSIBLE_TARGETS = ["app", "web"]; - -const target = process.env.PUBLIC_TARGET; - -if (!target || !POSSIBLE_TARGETS.includes(target)) { - throw new Error("Invalid target"); -} - export default defineConfig({ devToolbar: { enabled: false }, @@ -26,13 +17,12 @@ export default defineConfig({ esbuild: { target: "es2022" }, }, - output: target === "web" ? "static" : "server", + output: "static", site: "https://blitzkit.app", outDir: "../../dist/website", prefetch: { defaultStrategy: "hover", prefetchAll: true }, build: { concurrency: 4 }, - adapter: target === "app" ? node({ mode: "standalone" }) : undefined, integrations: [ favicons({ diff --git a/packages/website/package.json b/packages/website/package.json index 8ad371933..0beb690f9 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -2,10 +2,10 @@ "name": "@blitzkit/website", "type": "module", "scripts": { - "dev": "PUBLIC_TARGET=web astro dev", - "build": "PUBLIC_TARGET=web astro build", - "preview": "PUBLIC_TARGET=web astro preview", - "lint": "PUBLIC_TARGET=web astro check", + "dev": "astro dev", + "build": "astro build", + "preview": "astro preview", + "lint": "astro check", "astro": "astro" }, "dependencies": {