Repository navigation
Stop Pages previews overwriting the production site - #228
Merged
Dan Marshall (danmarshall) merged 1 commit intoNov 11, 2026
Merged
Conversation
Restrict preview artifacts to pull requests and remove production deployment. Leave publishing to the configured main/docs Pages source. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: eca2adda-c35b-4e8c-9fdb-5da48c2ae88e
Dan Marshall (danmarshall)
deleted the
fix/pages-preview-production-overwrite
branch
November 11, 2026 20:23
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.
Description
Stop the PR preview workflow from overwriting the production GitHub Pages site with the repository root.
Related Issues
No linked issue. Incorrect production deployment: https://github.com/microsoft/chartifact/actions/runs/43089703168
Type of Change
Changes Made
Testing
Test Details
git diff --check— passed./chartifact/docs/returned 200.Screenshots/Recordings
Not applicable.
Documentation
Checklist
Additional Context
Pages is configured to build
main/docsusing Jekyll. The preview workflow uploadedpath: .and deployed it on pushes to main, racing that publishing mechanism and replacing the site with unprocessed repository contents. Queued preview deployments have been cancelled and a rebuild from the configured Pages source requested. Merge this fix to prevent recurrence.For Maintainers