Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: 使用 GitHub Action 构建后部署 CF #3

Open
wling-art opened this issue Jan 16, 2025 · 0 comments
Open

Feature request: 使用 GitHub Action 构建后部署 CF #3

wling-art opened this issue Jan 16, 2025 · 0 comments

Comments

@wling-art
Copy link

你想加入什么功能?

使用 GitHub Action 构建后部署到 Cloudflare Pages
类似于:https://github.com/CrashVibe/CrashVibe.Docs/blob/main/.github/workflows/build.yml

原因

因为在为 leaf 文档增加相关功能遇到了阻碍
可以展示当前所看的文档的贡献者以及历史页面
https://nolebase-integrations.ayaka.io/pages/zh-CN/integrations/vitepress-plugin-git-changelog/getting-started

摘抄:

Cloudflare Pages 自带的 CI/CD 流水线功能内部是不包含全部 Git 日志信息的,唯一的解决办法是先在 GitHub Actions 或者 GitLab CI/CD Pipelines 的受控环境中进行构建,然后再通过 Cloudflare 官方的 wrangler 工具部署构建产物。

比如参考使用 Cloudflare 官方维护的 GitHub Actions 插件 pages-action 搭配在在 GitHub Actions 上进行构建 所介绍的 fetch-depth: 0 参数配置即可实现获取 Git 日志的能力。

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

No branches or pull requests

1 participant