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
For higher GitHub API limits, set a Worker secret:
87
+
GitHub Actions also deploys the Worker from `.github/workflows/deploy-download-worker.yml` when files under `workers/` change. Add these repository secrets before relying on the workflow:
88
+
89
+
```text
90
+
CLOUDFLARE_API_TOKEN
91
+
CLOUDFLARE_ACCOUNT_ID
92
+
MEMOH_GITHUB_TOKEN
93
+
```
94
+
95
+
`MEMOH_GITHUB_TOKEN` is written to the Worker as the runtime `GITHUB_TOKEN` secret, so the Worker can call the GitHub Releases API without hitting unauthenticated rate limits. A fine-grained read-only token for the release repository is enough.
96
+
97
+
If a download URL returns a GitHub Pages 404 page, the Worker route is not active for that path yet. Re-run the Worker deployment and, if Cloudflare cached the old 404, purge `/downloads/desktop/*`.
98
+
99
+
For manual deployments, set the Worker secret directly:
88
100
89
101
```bash
90
102
npx wrangler secret put GITHUB_TOKEN --config workers/wrangler.toml
0 commit comments