Skip to content

fix: skip Pages deploy for archived version builds#10

Merged
leseb merged 1 commit into
mainfrom
leseb/skip-pages-archived
Apr 29, 2026
Merged

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

Conversation

@leseb
Copy link
Copy Markdown
Contributor

@leseb leseb commented Apr 29, 2026

Summary

Archived version builds only produce docs/$VERSION/. Since docs/ is gitignored, the checkout doesn't contain the main Docusaurus site files — so deploying to Pages from an archived build overwrites the main site with just archived version directories, causing a 404 on the root URL.

This adds a building_latest job output and gates the Pages upload and deploy steps on it, so only "latest" builds touch GitHub Pages. Archived builds will just commit their files to git and skip deployment.

After merging, trigger a "latest" build to restore the main site.

Archived version builds only produce docs/$VERSION/ — the main
Docusaurus site files are not in the checkout (docs/ is gitignored).
Deploying to Pages from an archived build overwrites the main site
with just the archived version directories, causing a 404 on the
root URL.

Add a job output for building_latest and gate the Pages upload and
deploy steps on it so only "latest" builds touch GitHub Pages.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@leseb leseb merged commit bb3f694 into main Apr 29, 2026
1 check passed
@leseb leseb deleted the leseb/skip-pages-archived branch April 29, 2026 14:23
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