Skip to content

CI: 合并到 main 时通过 Deploy Hook 自动触发 Vercel 生产部署 - #265

Merged
Fei2411 merged 1 commit into
mainfrom
ci/vercel-deploy-hook
Nov 25, 2026
Merged

Fei2411 merged 1 commit into
mainfrom
ci/vercel-deploy-hook

Conversation

@Fei2411

@Fei2411 Fei2411 commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

背景

仓库迁移至 GitHub 组织 Fei-Craft/real-api-pricing 后:

  • Cloudflare Workers Builds(https://realapipricing.com)已重新授权并绑定至 Fei-Craft/real-api-pricing,自动构建与 PR 预览已原生恢复。
  • Vercel(https://real-api-pricing.vercel.app)因 Hobby 免费版对 GitHub Organization 仓库存在 gitOrgLimit=1 限制,无法由 GitHub App 原生推送自动触发;但项目自带的 Deploy Hook 可正常触发 main 分支的生产部署。

改动

  • 新增 .github/workflows/vercel-deploy-hook.yml:仅在 push 到 main(或手动 workflow_dispatch)时调用仓库 Secret VERCEL_DEPLOY_HOOK_URL,权限设为 permissions: {}(最小权限),无需检出代码。
  • 合并本 PR 后可端到端验证:
    1. Cloudflare Workers Builds 收到 Fei-Craft/real-api-pricing 的真实 push 事件并自动构建部署;
    2. GitHub Actions 自动触发 Vercel Deploy Hook 完成同步部署。

Devin Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Devin Review: 2 flags

Not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)

Devin Review

@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://ci-vercel-deploy-hook-real-api-pricing.inkcraftmg.workers.dev (commit 1bc4473)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://39e0b650-real-api-pricing.inkcraftmg.workers.dev 1bc4473 2026-11-25T13:05:14.084Z Visit the dashboard ↗

@Fei2411
Fei2411 merged commit cce3f28 into main Nov 25, 2026
5 checks passed
@Fei2411
Fei2411 deleted the ci/vercel-deploy-hook branch November 25, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant