ci(.github/workflows/ci-cd.yaml): 添加条件判断以限制部署到Cloudflare
Some checks failed
CI/CD Pipeline / build-and-deploy (push) Has been cancelled
/ playwright (push) Has been cancelled

This commit is contained in:
严浩
2025-09-18 15:19:47 +08:00
parent f92ef0f870
commit 7255675c9b

View File

@@ -45,6 +45,7 @@ jobs:
run: pnpm run type-check # 要先 build保证 components.d.ts 存在
- name: 🚀 部署到 Cloudflare
if: github.ref == 'refs/heads/main'
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}