From 583de8bb68c3cf2aeaa07c743a0c71a4ce34fe79 Mon Sep 17 00:00:00 2001 From: LiBr Date: Sun, 10 May 2026 13:18:36 +0800 Subject: [PATCH] Add manual frontend build workflow --- .github/workflows/frontend-build.yml | 43 ++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/frontend-build.yml diff --git a/.github/workflows/frontend-build.yml b/.github/workflows/frontend-build.yml new file mode 100644 index 0000000..f69be94 --- /dev/null +++ b/.github/workflows/frontend-build.yml @@ -0,0 +1,43 @@ +name: Frontend Build + +on: + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: frontend-build-${{ github.ref }} + cancel-in-progress: true + +env: + ASTRO_TELEMETRY_DISABLED: '1' + +jobs: + build: + name: Build frontend + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: 1.3.11 + + - name: Install dependencies + run: bun install --frozen-lockfile + + - name: Build frontend + run: bun run build + + - name: Upload build output + uses: actions/upload-artifact@v4 + with: + name: frontend-build-${{ github.run_id }} + path: | + dist + .vercel/output + if-no-files-found: error