Repository navigation
Conversation
Builds the PR as the version its base branch publishes, on top of the current gh-pages tree, and uploads it with `wrangler versions upload --preview-alias pr-<n>`, so production is untouched. A bot comment on the PR links the preview. Same-repo PRs only, since fork PRs don't get the Cloudflare secrets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
📖 Docs preview: https://pr-19-edgetx-lua-reference-guide.edgetx.workers.dev/2.12/ Built from f2dbec0 as the |
Member
Author
|
Superseded by #31, which adds a generic preview workflow for main and all edgetx_* branches. |
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
New
.github/workflows/preview-docs.yml. For each PR intomainoredgetx_2.12, it builds the docs and uploads them as a Cloudflare Worker version with a preview alias. Production keeps serving the deployed version. The preview is at:https://pr-<number>-edgetx-lua-reference-guide.edgetx.workers.dev/<version>/main→dev,edgetx_2.12→2.12/latest), on top of the currentgh-pagestree. The preview is the whole site with that one version replaced, so the version switcher, banners and the other versions all work. Nothing gets pushed togh-pages.wrangler versions upload --preview-alias pr-<n>. Each push to the PR updates the same alias.pull_requestwith no secrets, then upload the static artifact from a separateworkflow_runjob.Preview URLs are already turned on for the Worker in the dashboard.
Notes
DOCS_EDIT_URIpoints edit links at the PR's head branch. It only takes effect once feat: version banners for dev/legacy, per-branch edit links #18 is merged; until then it's ignored.Testing
This PR is a same-repo PR into
edgetx_2.12, so the workflow runs on this PR itself. The preview comment below is the test.🤖 Generated with Claude Code