ci(github): 简化Cloudflare Pages部署配置

移除冗余的account-id和api-token参数,这些已通过环境变量自动注入
This commit is contained in:
afoim
2025-08-13 14:03:21 +08:00
parent 1f3f6c2b40
commit 8d1a6b72a8

View File

@@ -46,9 +46,7 @@ jobs:
BRANCH_NAME=pr-${PR_NUMBER}
wrangler pages deploy ./dist \
--project-name=$CLOUDFLARE_PROJECT_NAME \
--branch=$BRANCH_NAME \
--account-id=$CLOUDFLARE_ACCOUNT_ID \
--api-token=$CLOUDFLARE_API_TOKEN
--branch=$BRANCH_NAME
# 7. 在 PR 评论区发布预览链接
- name: Comment preview URL on PR