mirror of
https://github.com/maillab/cloud-mail.git
synced 2026-04-25 16:26:05 +03:00
[PR #29] [MERGED] 新增 GitHub Actions 自动化部署(同步上游后自动Init数据库) #185
Labels
No labels
bug
enhancement
enhancement
enhancement
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cloud-mail-maillab#185
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/maillab/cloud-mail/pull/29
Author: @Silentely
Created: 7/7/2025
Status: ✅ Merged
Merged: 7/7/2025
Merged by: @eoao
Base:
dev← Head:main📝 Commits (3)
4665ae9新增action部署986a533fix action7eeee4cfix 变量说明📊 Changes
3 files changed (+191 additions, -0 deletions)
View changed files
➕
.github/workflows/deploy-cloudflare.yml(+117 -0)📝
README.md(+38 -0)➕
mail-worker/wrangler-action.toml(+36 -0)📄 Description
本次更新引入了 GitHub Actions,实现了项目到 Cloudflare Workers 的自动化部署。这大大简化了部署流程,并提供了详细的部署指南。
Github Action 部署
配置 Github 仓库
CLOUDFLARE_API_TOKENCLOUDFLARE_ACCOUNT_IDD1_DATABASE_IDKV_NAMESPACE_IDR2_BUCKET_NAMEDOMAIN"["xx.xx"]",多域名用,分隔)ADMIN"admin@example.com")JWT_SECRETINIT_URL获取 Cloudflare API 令牌
CLOUDFLARE_API_TOKEN获取 Cloudflare 账户 ID
CLOUDFLARE_ACCOUNT_ID运行工作流
INIT_URL,则需要手动访问https://你的项目域名/api/init/你的jwt_secret进行数据库初始化。🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.