Skip to content

ci: use one shared publish/preview workflow on every branch - #31

Merged
pfeerick merged 1 commit into
edgetx_2.12from
shared-workflows
Oct 23, 2026
Merged

pfeerick merged 1 commit into
edgetx_2.12from
shared-workflows

Conversation

@pfeerick

@pfeerick pfeerick commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Summary

All docs branches are MkDocs now: 2.4–2.11 were converted in #23–#30. So every branch can carry the same workflows and build itself. This brings edgetx_2.12 in line with the copies already on the converted branches.

publish-versioned-docs.yml

  • Removes the GitBook import path and the workflow_call trigger added in ci: publish edgetx_2.11 (LTS) from the shared workflow #20. Neither is needed anymore.
  • Triggers on main and edgetx_*. Versions are derived from the branch name: main → dev, edgetx_x.y → x.y.
  • The latest release branch comes from the DOCS_LATEST_BRANCH repository variable, falling back to edgetx_2.12. With a copy on every branch, a hardcoded value would let a push to 2.12 take the latest alias back after 2.13 ships. With the variable, moving latest is one settings change.
  • Concurrency is back at workflow level, because nothing calls this workflow anymore.

preview-docs.yml (replaces #19)

  • Uploads a Cloudflare preview (wrangler versions upload --preview-alias pr-<n>) for PRs into main or any edgetx_* branch, and comments the link. Same-repo PRs only.
  • This PR adds the file, so it should get a preview of its own.

The action version bump is stacked on top in #32.

After merging

🤖 Generated with Claude Code

All docs branches are MkDocs now, so the publish workflow no longer needs
the GitBook import path or workflow_call: every branch carries the same
file and builds itself. The latest release branch comes from the
DOCS_LATEST_BRANCH repository variable (falling back to edgetx_2.12), so
an older branch's copy can't take the "latest" alias back after a new
release ships.

Also adds preview-docs.yml, which uploads a Cloudflare preview for PRs
into main or any edgetx_* branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pfeerick
pfeerick added this pull request to stack #33 October 23, 2026 09:29
@pfeerick
pfeerick marked this pull request as ready for review October 23, 2026 09:30
@github-actions

Copy link
Copy Markdown
Contributor

📖 Docs preview: https://pr-31-edgetx-lua-reference-guide.edgetx.workers.dev/2.12/

Built from 6c5d6d1 as the 2.12 version, on top of the currently published site.

@pfeerick
pfeerick merged commit d366bfe into edgetx_2.12 Oct 23, 2026
2 checks 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