Add Netlify deployment instructions to README
Added Netlify deployment badge and detailed deployment steps to both English and Chinese README files. Also clarified that Workers code is converted to Functions-compatible format for both Vercel and Netlify workflows.
This commit is contained in:
1 parent
44dd815042
commit
7c49d905a1
2 files changed
+52
-2
No files matched your search
@@ -8,6 +8,7 @@
|
||||
[](#部署到-cloudflare-workers)
|
||||
[](#部署到-edgeone-pages)
|
||||
[](#部署到-vercel)
|
||||
[](#部署到-netlify)
|
||||
[](#自托管部署)
|
||||
[](#自托管部署)
|
||||
[](#-生态系统集成)
|
||||
@@ -2396,7 +2397,7 @@ client = OpenAI(
|
||||
- `VERCEL_TOKEN`:你的 Vercel Access Token
|
||||
|
||||
4. **触发部署**:
|
||||
- 存储库会自动将 Workers 代码转换为 Vercel Functions 兼容格式并同步到 `functions` 分支
|
||||
- 存储库会自动将 Workers 代码转换为 Functions 兼容格式并同步到 `functions` 分支
|
||||
- 推送代码到 `main` 分支会自动触发同步和部署工作流
|
||||
- 仅修改文档文件(`.md`)、`LICENSE`、`.gitignore` 等不会触发部署
|
||||
- 也可以在 GitHub Actions 页面手动触发部署
|
||||
@@ -2405,6 +2406,30 @@ client = OpenAI(
|
||||
|
||||
**注意**:`functions` 分支是从 `main` 分支自动生成的。请勿手动编辑 `functions` 分支,因为它会被同步工作流覆盖。
|
||||
|
||||
### 部署到 Netlify
|
||||
|
||||
1. **fork 本存储库**:[Fork xixu-me/Xget](https://github.com/xixu-me/Xget/fork)
|
||||
|
||||
2. **获取 Netlify 凭证**:
|
||||
- 访问 [Netlify User Settings](https://app.netlify.com/user/applications) 创建并记录 personal access token
|
||||
- 新建项目后访问项目配置页面记录 Project ID
|
||||
|
||||
3. **配置 GitHub Secrets**:
|
||||
- 进入你的 GitHub 存储库 → Settings → Secrets and variables → Actions
|
||||
- 添加以下 secrets:
|
||||
- `NETLIFY_AUTH_TOKEN`:你的 personal access token
|
||||
- `NETLIFY_SITE_ID`:你的 Project ID
|
||||
|
||||
4. **触发部署**:
|
||||
- 存储库会自动将 Workers 代码转换为 Functions 兼容格式并同步到 `functions` 分支
|
||||
- 推送代码到 `main` 分支会自动触发同步和部署工作流
|
||||
- 仅修改文档文件(`.md`)、`LICENSE`、`.gitignore` 等不会触发部署
|
||||
- 也可以在 GitHub Actions 页面手动触发部署
|
||||
|
||||
5. **绑定自定义域名**(可选):在 Netlify 控制台中绑定你的自定义域名
|
||||
|
||||
**注意**:`functions` 分支是从 `main` 分支自动生成的。请勿手动编辑 `functions` 分支,因为它会被同步工作流覆盖。
|
||||
|
||||
### 自托管部署
|
||||
|
||||
如果你希望在自己的服务器上运行 Xget,可以使用 Docker 或 Podman 部署:
|
||||
|
||||
Reference in new issue
Block a user