fix: CI environment variable passing and caching issues#431
Merged
Conversation
Collaborator
OXeu
commented
Feb 16, 2026
- Added support for CACHE_STORAGE_MODE environment variables, default to s3
- Fixed an issue where site configuration variables were missing when deploy-cf.ts generated wrangler.toml
- Add NAME, DESCRIPTION, AVATAR, PAGE_SIZE, RSS_ENABLE
- Fixed deploy.yml missing S3 configuration variable passing
- Add S3_CACHE_FOLDER, S3_FOLDER, S3_REGION, S3_FORCE_PATH_STYLE
- Fixed action.yml using environment variables instead of hardcoded values
- Added automatic commenting after PR Preview deployment
- Fixed an issue where S3StorageProvider handled non-JSON responses
- Rewrite environment variable documentation to clearly differentiate between Secrets and Variables
- 添加 CACHE_STORAGE_MODE 环境变量支持,默认 s3 - 修复 deploy-cf.ts 生成 wrangler.toml 时缺少站点配置变量的问题 - 添加 NAME, DESCRIPTION, AVATAR, PAGE_SIZE, RSS_ENABLE - 修复 deploy.yml 缺少 S3 配置变量传递 - 添加 S3_CACHE_FOLDER, S3_FOLDER, S3_REGION, S3_FORCE_PATH_STYLE - 修复 action.yml 使用环境变量而非硬编码值 - 添加 PR Preview 部署后自动评论功能 - 修复 S3StorageProvider 处理非 JSON 响应的问题 - 重写环境变量文档,明确区分 Secrets 和 Variables
- R2_BUCKET_NAME 默认值改为空字符串 - 只有明确设置 R2_BUCKET_NAME 时才使用 R2 - 移除自动发现 R2 bucket 的功能 - 检查 CLOUDFLARE_ACCOUNT_ID 是否存在
- 说明 v0.3.0 不再自动发现 R2 bucket - 老用户需要在 Variables 中设置 R2_BUCKET_NAME - 更新中英文迁移文档
- 只有当 S3 完全未配置时才使用 R2,避免覆盖用户配置 - 从迁移文档中移除错误的 R2 说明 - 在部署文档中添加 R2 自动配置的详细说明 - 更新中英文部署文档
|
🧹 Preview deployment has been cleaned up. The temporary preview environment for this PR has been deleted. |
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.