Repository navigation
feat: add Astro website with cached Cloudflare download redirects - #38
Merged
Merged
Conversation
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.
Summary
Add a Chinese WheelPlay product website in
website/, built with Astro static generation and deployable to Cloudflare Pages or Workers Static Assets. Visitors can explore responsive product illustrations, setup instructions, and FAQs, switch themes, and download the latest development build.The download button now opens
/download. A shared Worker/Pages Function resolves the newest successfulmainrun ofdebug-build.yml, selects its unexpiredwheelplay-debug-apkartifact, and returns a 302 tohttps://github.com/fython/wheelplay/actions/runs/{run_id}/artifacts/{artifact_id}. Only GitHub metadata is fetched; artifact files are never proxied. Missing artifacts return 404 without falling back to an older run; API failures return 503 with a workflow link and Retry-After.GITHUB_TOKENstays in Cloudflare secrets and is never included in HTML, redirects, or caches.website/src/pages/docs/. Shared layout handles navigation, metadata, automatic heading links, light/dark themes, and responsive typography. Homepage documentation links open these pages; future content edits require no Astro/HTML changes. Disable inline code-highlighting styles to preserve the CSP.website/README.md.Validation
git diff --checkpassed.Deployment notes
No Cloudflare deployment or online CPU benchmark has been performed. GitHub responses in resolver/runtime tests are mocked; live GitHub API access was unavailable in the execution environment. Production deployments can configure a fine-grained
GITHUB_TOKENwith Actions read permission to increase API limits. Downloading artifacts may require GitHub login.Astro's
dist/contains static assets only; deploy from the repository so Wrangler/Pages includes the Worker or Functions source. Android application code is unchanged.