Skip to content

ci: publish immutable embedded releases to Cloudflare R2 - #2

Merged
mikebarkmin merged 2 commits into
mainfrom
r2-cdn-releases
Oct 10, 2026
Merged

mikebarkmin merged 2 commits into
mainfrom
r2-cdn-releases

Conversation

@mikebarkmin

@mikebarkmin mikebarkmin commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

Published embedded releases now upload their verified dist-embedded.zip contents to cdn.openpatch.org/onlineide/<tag>/include/. Each release remains immutable and older versions remain available. The existing release workflow also accepts a published tag for initial uploads and retries.

Wrangler reads organization secret CLOUDFLARE_R2_CDN and variable or secret CLOUDFLARE_ACCOUNT_ID. Publication sets CORS, correct MIME types, and immutable caching, then verifies every file through the public hostname. The Cloudflare API token needs Account → Workers R2 Storage → Edit; bucket-scoped object permissions support only S3.

Validation: 12 publisher/extraction/verification tests, actionlint and the existing compiler, runtime and Chromium tests pass. The initial upload succeeded for v2.2.1-hyperbook.28; all 414 runtime files match the verified release archive and pass public CDN checks for SHA-256, MIME type, CORS and immutable caching. A generated Hyperbook loaded the live CDN in Chromium and executed Java code with the expected output and no browser errors. Merge this workflow to enable publication for future releases.

@mikebarkmin
mikebarkmin marked this pull request as ready for review October 10, 2026 10:00
@mikebarkmin
mikebarkmin merged commit 91f4c1d into main Oct 10, 2026
1 check passed
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