ci: 添加PR部署工作流#829
Draft
lingbopro wants to merge 5 commits into
Draft
Conversation
Member
Author
|
@tangyuan0821 为了使工作流能正常运行,请问可否为你的账户生成一个带有Pages读写权限的API令牌并将其置于仓库机密 |
tangyuan0821
reviewed
Jun 7, 2026
tangyuan0821
reviewed
Jun 7, 2026
| uses: cloudflare/wrangler-action@v3 | ||
| with: | ||
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} |
Member
There was a problem hiding this comment.
PR似乎无法访问secrets捏,最好改用pull_request_target
Member
Author
There was a problem hiding this comment.
好像确实)
不过,pull_request_target在源仓库的主分支上运行,那还能实时预览执行效果嘛?
而且pull_request_target工作流不能直接checkout PR里的代码
Member
Author
There was a problem hiding this comment.
问了 GitHub Docs 内置的Copilot,它是这么说的:
Member
|
另外这么久了,tjy还没有给我们安装应用的权限嘛 |
Contributor
|
是不是又离线了( |
Co-authored-by: Paper Moon <47830915@qq.com>
tangyuan0821
requested changes
Jun 7, 2026
Co-authored-by: Paper Moon <47830915@qq.com>
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.


参见 #793
我们在此issue提到可以用Actions来部署,因此本PR是一个简单的实现
(我也不知道能不能运行...)
另外,要使此Workflow正常工作,还需要设置仓库机密(见工作流文件)
(此PR借助通义灵码完成)