Add the getsysperf.com landing page and deploy it to Cloudflare Pages #3
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jay/sysperf!3
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/lucid-planck-v4zwtb"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A static landing page for
getsysperf.com, plus a GitHub Actions workflow that deploys it to the Cloudflare Pages projectsysperf. Page and script (/bench) always come from the same commit of this repository.Landing page
site/index.html,style.css,copy.js,favicon.svgcurl -fsSL https://getsysperf.com/bench | bash, with a curl/wget switch and a copy button.GEEKBENCH=7, with download size, requirements and the upload notice./bench.sha256), what the script changes on the system, and which hosts it contacts.site/build.shdist/. It copies the repository's ownbenchto/bench, writes/bench.sha256, and fills inSYSPERF_VERSIONand the checksum.SITE_URL(optional, defaulthttps://getsysperf.com) sets where the commands on the page point. Only plainhttps://hostvalues are accepted.benchhas a syntax error or no version.site/_headersHSTS, a strict Content-Security-Policy,
Referrer-Policy: no-referrerand a restrictivePermissions-Policy./benchand/bench.sha256are served astext/plainwithCache-Control: no-cache.site/README.mdLocal preview, releasing, how the site is hosted, and securing the domain.
Deployment:
.github/workflows/deploy.ymlmasterthat changesbench,site/or the workflow, and manually under Actions → Deploy site → Run workflow.sysperfwithwrangler pages deploy, using Wrangler pinned to 4.159.0 vianpxand no third-party action.https://sysperf.pages.dev/benchis byte-identical to the build, that the page shows the new version, and that the served script parses.https://getsysperf.comis checked too, but only warns while the custom domain is being set up.CLOUDFLARE_API_TOKEN, with only Account · Cloudflare Pages · Edit. The account ID isn't secret and lives in the workflow.GITHUB_TOKENCloudflare state (set up outside this PR)
sysperfcreated (Direct Upload, production branchmaster).getsysperf.comadded to the project. It still needs the DNS recordgetsysperf.com CNAME sysperf.pages.dev(proxied) before it can activate.Testing
/benchis identical tobench.SITE_URLvalues are rejected.actionlint1.7.12 passes, including shellcheck on the run steps.Authorizationheader that Pages' asset upload needs, so the first real deployment is the workflow run after merging.🤖 Generated with Claude Code
https://claude.ai/code/session_01WFUVi2gu5nYSuZeyRWAGiM