- 创建 Cloudflare API 令牌
- 访问 Cloudflare API Tokens
- 选择需要解析的域名,创建编辑 DNS 权限的
CF_API_TOKEN
-
设置 GitHub Secrets
- 在你的 GitHub 仓库中,设置
CF_API_TOKEN
为你的 Cloudflare API 令牌 - 参考 GitHub 文档:Creating and storing encrypted secrets
- 在你的 GitHub 仓库中,设置
-
配置 GitHub Actions 定时任务
- 编辑 .github/workflows/main.yml 文件,设置
cron
表达式以定义任务运行时间
- 编辑 .github/workflows/main.yml 文件,设置