Skip to content

fix: skip Pages deploy for archived version builds#13

Merged
leseb merged 1 commit into
mainfrom
leseb/fix-archived-deploy
Apr 29, 2026
Merged

fix: skip Pages deploy for archived version builds#13
leseb merged 1 commit into
mainfrom
leseb/fix-archived-deploy

Conversation

@leseb
Copy link
Copy Markdown
Contributor

@leseb leseb commented Apr 29, 2026

What does this PR do?

Fixes the 404 on the main site caused by archived version builds deploying an incomplete docs/ directory to GitHub Pages.

Root cause: The main Docusaurus site is built during "latest" builds and copied into the workflow's docs/ directory, but never committed to git. When an archived version build runs, it commits docs/vX.Y.Z/ and then deploys the entire docs/ directory to Pages — which only contains archived subdirectories and no index.html at the root.

Fix: Skip the Pages deploy for archived builds. After committing the archived version, trigger a docs-update repository dispatch which performs a full latest rebuild — this includes both the main site and all archived versions in a single deployment.

Test Plan

  1. Trigger a docs-version-deploy dispatch for any version (e.g. v0.7.0)
  2. Verify the deploy job is skipped and rebuild-latest triggers a new docs-update run
  3. Verify the subsequent latest build deploys successfully with both the main site and archived versions
  4. Confirm https://ogx-ai.github.io/ loads without 404

Archived version builds only commit static HTML under docs/vX.Y.Z/ but
the main Docusaurus site files are not in git. When Pages deployed the
docs/ directory after an archived build, it served only the archived
subdirectories with no index.html at the root, causing a 404.

Skip the Pages deploy step for archived builds and instead trigger a
full latest rebuild via repository_dispatch, which includes both the
main site and all archived version directories.

Signed-off-by: Sébastien Han <seb@redhat.com>
@leseb leseb merged commit d74ee55 into main Apr 29, 2026
1 check passed
@leseb leseb deleted the leseb/fix-archived-deploy branch April 29, 2026 14:22
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