From e24cca5b605faffde8557f3d315ea625cd73911b Mon Sep 17 00:00:00 2001 From: Tony Chen <26252739+TooonyChen@users.noreply.github.com> Date: Tue, 8 Oct 2024 20:30:14 +1300 Subject: [PATCH 1/2] Update README_CN.md --- README_CN.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README_CN.md b/README_CN.md index e02cb67..06c4a44 100644 --- a/README_CN.md +++ b/README_CN.md @@ -113,20 +113,22 @@ If there is no code, clickable link, or this is an advertisement email, return: [![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/TooonyChen/AuthInbox) - 1. 点击上方按钮 fork 此仓库,或直接 fork 此仓库。**重要:请务必把你的仓库设置为私密!!** + 1. 点击上方按钮 fork 此仓库,或直接 fork 此仓库。 2. 打开你 fork 的仓库,找到 `Actions` 页面,找到 `Deploy Auth Inbox to Cloudflare Workers`,并点击 `enable workflow` 激活 workflow。 3. 然后,在仓库页面中,导航到 `Settings` -> `Secrets and variables` -> `Actions` -> `Repository secrets`,并添加以下 secrets: - `CLOUDFLARE_ACCOUNT_ID`: Cloudflare 账户 ID。 - `CLOUDFLARE_API_TOKEN`: Cloudflare API Token。 - - `TOML`: 配置文件,参考 [带有注释的wrangler.toml](https://github.com/TooonyChen/AuthInbox/blob/main/wrangler.toml.example)。**添加至secrets时,请使用[不带注释的版本](https://github.com/TooonyChen/AuthInbox/blob/main/wrangler.toml.example.clear)来避免奇怪的报错。 + - `TOML`: 配置文件,参考 [带有注释的wrangler.toml](https://github.com/TooonyChen/AuthInbox/blob/main/wrangler.toml.example)。**添加至secrets时,请使用[不带注释的版本](https://github.com/TooonyChen/AuthInbox/blob/main/wrangler.toml.example.clear)来避免奇怪的报错。** 4. 返回你仓库的 `Actions` 页面,找到 `Deploy Auth Inbox to Cloudflare Workers`,并按 `Run workflow` 来部署 worker。如果没找到 `Run workflow` 按钮,请你随便修改一下repo中的`readme.md`文件,让Github Actions自动运行。 5. 部署成功后,你可以在 `Deploy Auth Inbox to Cloudflare Workers` 的 workflow 日志中找到你的 worker URL。 - 6. 完成!✅ 你现在可以访问你的新部署的 Auth Inbox URL,查看电子邮件结果。 + 6. 你可以在 workflow 日志页面的右上角找到 `delete all logs` 来删除日志,删除它来避免数据外泄。 + + 7. 完成!✅ 你现在可以访问你的新部署的 Auth Inbox URL,查看电子邮件结果。 2. **使用 Wrangler 命令行部署到 Cloudflare Workers** From 57dd096a9ad6b4ee6d8b1fc6266b06fbf6a84e02 Mon Sep 17 00:00:00 2001 From: Tony Chen <26252739+TooonyChen@users.noreply.github.com> Date: Tue, 8 Oct 2024 20:31:04 +1300 Subject: [PATCH 2/2] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b827c3e..f45254a 100644 --- a/README.md +++ b/README.md @@ -125,9 +125,11 @@ If there is no code, clickable link, or this is an advertisement email, return: 4. Back to `Action` Page in your repository, find `Deploy Auth Inbox to Cloudflare Workers` and press `Run workflow` to deploy the worker. If you can't find the `Run workflow` button, you can trigger GitHub Actions automatically by making a small edit to the `readme.md` file in your repository. - 5. After the deployment is successful, you can find the URL of your worker in the `Deploy Auth Inbox to Cloudflare Workers` workflow log. + 5. After the deployment is successful, you can find the URL of your worker in the `Deploy Auth Inbox to Cloudflare Workers` workflow log. - 6. Done! ✅ You can now visit the URL for your newly deployed Auth Inbox to check the email results. + 6. You can find the `delete all logs` button in the upper-right corner of the workflow logs page. Use it to delete the logs to avoid data leakage. + + 7. Done! ✅ You can now visit the URL for your newly deployed Auth Inbox to check the email results. 2. **Install using command-line**