Add a section in the README for environment variable setup and adjust the Cargo dependencies to match worker-build to prevent Action failures.#2
Closed
afoim wants to merge 17 commits intodeep-gaurav:mainfrom
Closed
Conversation
Auto create database and jwt secrets in action
重构Cloudflare部署流程,将D1数据库创建和schema应用从preCommands拆分为独立步骤 更新Rust依赖版本,包括worker和wasm-bindgen相关包
为Cloudflare相关操作添加CLOUDFLARE_API_TOKEN和CLOUDFLARE_ACCOUNT_ID环境变量,确保工作流能正确执行
将GitHub Actions中的wrangler命令替换为直接调用Cloudflare API的方式 - 创建D1数据库时使用API直接调用并验证响应 - 应用数据库schema时改用API直接执行SQL - 创建JWT密钥时使用API替代wrangler secret命令 - 增加错误处理和响应状态码检查
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I made two changes:
wasm-bindgeninCargo.tomlto prevent GitHub Actions from throwing the following error: