Repository navigation
CI: 合并到 main 时通过 Deploy Hook 自动触发 Vercel 生产部署 - #265
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🔍 Devin Review: 2 flags
Not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
🚀 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 deploymentPreview Deployments by commit
|
6 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
仓库迁移至 GitHub 组织
Fei-Craft/real-api-pricing后:https://realapipricing.com)已重新授权并绑定至Fei-Craft/real-api-pricing,自动构建与 PR 预览已原生恢复。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)时调用仓库 SecretVERCEL_DEPLOY_HOOK_URL,权限设为permissions: {}(最小权限),无需检出代码。Fei-Craft/real-api-pricing的真实push事件并自动构建部署;