You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add missing CLI commands for uploading env files to GitHub Secrets
in both English and Chinese sections, and add ALCHEMY_STATE_TOKEN
cross-project note.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+20-2Lines changed: 20 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,11 +119,20 @@ This project includes a fully configured GitHub Actions workflow (`.github/workf
119
119
To enable automated deployment, add the following **Repository Secrets** in your GitHub repository (*Settings -> Secrets and variables -> Actions -> New repository secret*):
120
120
121
121
1.**`CLOUDFLARE_API_TOKEN`**: Your Cloudflare API Token. Generate one mirroring your permissions by running: `pnpm dlx alchemy util create-cloudflare-token`.
122
-
2.**`ALCHEMY_STATE_TOKEN`**: A random 32-character hex string for Alchemy state management. Generate via: `openssl rand -hex 32`.
122
+
2.**`ALCHEMY_STATE_TOKEN`**: A random 32-character hex string for Alchemy state management. Generate via: `openssl rand -hex 32`. Must be the same across all projects under the same Cloudflare account.
123
123
3.**`CLOUDFLARE_EMAIL`**: Your Cloudflare account login email.
124
124
4.**`ENV_SERVER_DEV` / `ENV_SERVER_PROD`**: The full content of your `apps/server/.env` file for the respective environment. This injects your backend environment variables securely.
125
125
5.**`ENV_WEB_DEV` / `ENV_WEB_PROD`**: The full content of your `apps/web/.env` file for the respective environment. This injects your frontend environment variables securely.
126
126
127
+
Upload local env files to GitHub Secrets via CLI:
128
+
129
+
```bash
130
+
gh secret set ENV_SERVER_DEV < apps/server/.dev.env
131
+
gh secret set ENV_SERVER_PROD < apps/server/.env
132
+
gh secret set ENV_WEB_DEV < apps/web/.dev.env
133
+
gh secret set ENV_WEB_PROD < apps/web/.env
134
+
```
135
+
127
136
---
128
137
129
138
## 📄 License
@@ -251,11 +260,20 @@ pnpm run deploy:prod
251
260
要启用自动部署,请在您的 GitHub 仓库中添加以下 **Repository Secrets** (*Settings -> Secrets and variables -> Actions -> New repository secret*):
252
261
253
262
1.**`CLOUDFLARE_API_TOKEN`**: Cloudflare API 令牌。运行 `pnpm dlx alchemy util create-cloudflare-token` 生成一个包含当前权限的令牌。
0 commit comments