From 9a6698bd9d5e9232d31915a88d39de164a1bb17f Mon Sep 17 00:00:00 2001 From: Zhang Zhe <16097046+zzzz0317@users.noreply.github.com> Date: Wed, 17 Sep 2025 03:21:13 +0000 Subject: [PATCH] ci: build and upload to artifact --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5c5931b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI Build + +on: + push: + branches: [ main ] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install pnpm + run: npm install -g pnpm + + - name: Install dependencies + run: pnpm install + + - name: Build project + run: pnpm run generate + + - name: Upload dist artifact + uses: actions/upload-artifact@v4 + with: + name: dist + path: dist/