Skip to content

ci: let the deploy workflow publish without moving latest - #140

Merged
gantoine merged 1 commit into
mainfrom
ci/deploy-without-latest
Sep 12, 2026
Merged

ci: let the deploy workflow publish without moving latest#140
gantoine merged 1 commit into
mainfrom
ci/deploy-without-latest

Conversation

@gantoine

Copy link
Copy Markdown
Member

What

Adds a set_latest boolean input to the Build and Deploy Docs workflow. It defaults to true, so a normal release dispatch behaves exactly as it does today. Unchecking it runs mike deploy --push "$VERSION" with no alias argument.

Why

The deploy step hardcoded the alias:

run: uv run mike deploy --push --update-aliases $VERSION latest

Every publish therefore moved latest onto whatever version was dispatched. Since the site root redirects to latest/, there was no way to put a pre-release on docs.romm.app without also making it the page every visitor lands on.

With the input unchecked, an alpha deploys to docs.romm.app/5.3.0-alpha.1/ and shows up in the version dropdown, while latest stays on the current stable release. Publishing the final version later through a normal run moves the alias as usual.

Notes

  • The branch treats only an explicit "false" as the opt-out, so a dispatch that somehow arrives without the input still aliases latest.
  • trunk check (actionlint, yamllint, prettier, checkov) passes clean on the file.

🤖 Generated with Claude Code

The deploy workflow hardcoded `mike deploy --push --update-aliases
$VERSION latest`, so every publish moved the `latest` alias onto
whatever version was dispatched. The site root redirects to `latest/`,
which made it impossible to put an alpha, beta or release candidate on
docs.romm.app without also making it the page everyone lands on.

Add a `set_latest` boolean input, defaulting to true so a normal
release run behaves exactly as before. Unchecking it deploys the
version on its own, reachable at its own URL and listed in the version
dropdown, with `latest` left where it is.

The branch treats only an explicit "false" as opt-out, so a dispatch
that somehow arrives without the input still aliases `latest`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@gantoine
gantoine merged commit 1b8504d into main Sep 12, 2026
4 checks passed
@gantoine
gantoine deleted the ci/deploy-without-latest branch September 12, 2026 00:13
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