Skip to content

fix: CI environment variable passing and caching issues#431

Merged
OXeu merged 6 commits into
mainfrom
dev/fix-ci-env-vars
Feb 16, 2026
Merged

fix: CI environment variable passing and caching issues#431
OXeu merged 6 commits into
mainfrom
dev/fix-ci-env-vars

Conversation

@OXeu
Copy link
Copy Markdown
Collaborator

@OXeu 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
@OXeu OXeu changed the base branch from main to trunk February 16, 2026 07:24
@OXeu OXeu changed the base branch from trunk to main February 16, 2026 07:24
OXeu added 5 commits February 16, 2026 07:31
- 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 自动配置的详细说明
- 更新中英文部署文档
@OXeu OXeu merged commit b958810 into main Feb 16, 2026
7 checks passed
@github-actions
Copy link
Copy Markdown

🧹 Preview deployment has been cleaned up.

The temporary preview environment for this PR has been deleted.

@OXeu OXeu deleted the dev/fix-ci-env-vars branch March 8, 2026 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant