From 21339352ae2c2da0edd1e2edafdb429cf31f60a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BC=96=E7=A0=81=E7=8C=BF?= Date: Sun, 5 Oct 2025 01:20:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E5=87=BA=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yml | 41 +++----------------------------------- 1 file changed, 3 insertions(+), 38 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 36a3059..99796ee 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -1,44 +1,9 @@ - -name: 构建项目 -run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 - -# 2. 触发条件 (on) +name: 测试检出 on: [push] -# 3. 作业定义 (jobs) jobs: - 构建: - # 4. 运行器选择 (runs-on) + 测试: runs-on: ubuntu-latest - - # 5. 步骤序列 (steps) steps: - # 步骤 1: 检出代码 - name: 检出代码 - uses: https://gitea.com/actions/checkout@v4 - - - - name: 显示目录 - run: ls -la - - # 步骤 2: 设置 Node.js 环境 - - name: 设置 Node.js 环境 - uses: https://gitea.com/actions/setup-node@v4 - with: - node-version: 18 - cache: 'npm' - - # 步骤 3: 安装依赖 - - name: 安装依赖 - run: npm ci - - # 步骤 4: 执行打包命令 - - name: 执行Build构建 - run: npm run build - - # 步骤 5: 上传打包产物 - - name: 上传构建产物 - uses: https://gitea.com/actions/upload-artifact@v4 - with: - name: dist - path: dist/ \ No newline at end of file + uses: actions/checkout@v4 \ No newline at end of file