From c928aa72bcbf95e509227dd15c5ff1e866157914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Thu, 18 Sep 2025 12:57:00 +0800 Subject: [PATCH] =?UTF-8?q?chore(ci-cd):=20=E9=87=8D=E6=9E=84=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81=EF=BC=8C=E5=90=88=E5=B9=B6=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E5=92=8C=E9=83=A8=E7=BD=B2=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-cd.yaml | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/.github/workflows/ci-cd.yaml b/.github/workflows/ci-cd.yaml index 50ded36..635c679 100644 --- a/.github/workflows/ci-cd.yaml +++ b/.github/workflows/ci-cd.yaml @@ -12,7 +12,7 @@ on: workflow_dispatch: jobs: - lint-build-and-typecheck: + build-and-deploy: runs-on: ubuntu-latest container: gitea/runner-images:ubuntu-latest-slim # https://github.com/cloudflare/wrangler-action/issues/329#issuecomment-3046747722 @@ -44,32 +44,6 @@ jobs: - name: ✅ 类型检查 run: pnpm run type-check # 要先 build,保证 components.d.ts 存在 - deploy: - runs-on: ubuntu-latest - needs: lint-build-and-typecheck - if: github.ref == 'refs/heads/main' - - # https://github.com/cloudflare/wrangler-action/issues/329#issuecomment-3046747722 - container: - image: gitea/runner-images:ubuntu-latest-slim - - steps: - - name: 🛠️ 设置Node环境 - uses: yanhao98/composite-actions/setup-node-environment@25eb4dc0c134cc9df2b7c569aa54140a366b45a8 - - - name: 📦 构建项目 - run: pnpm run build-only - env: - VITE_BUILD_COMMIT: ${{ github.sha }} - - # - name: 🚀 上传版本到 Cloudflare - # uses: cloudflare/wrangler-action@v3 - # id: upload - # with: - # apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - # accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - # command: versions upload --tag "${{ github.sha }}" --message "Deploy commit ${{ github.sha }} from ${{ github.ref_name }}" - - name: 🚀 部署到 Cloudflare uses: cloudflare/wrangler-action@v3 with: