Skip to content

Fix GitHub Pages deploy failure caused by duplicate artifact files and missing front matter - #1

Merged
janbender merged 2 commits into
mainfrom
copilot/fix-deployment-job-failure
Jul 6, 2026
Merged

Fix GitHub Pages deploy failure caused by duplicate artifact files and missing front matter#1
janbender merged 2 commits into
mainfrom
copilot/fix-deployment-job-failure

Conversation

Copilot AI commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

The pages-build-deployment deploy job was failing during syncing_files after the build job succeeded cleanly. The artifact had grown to 117 MB (from ~75 MB) and contained redundant files because index.md lacked YAML front matter — causing Jekyll to emit both a processed index.html and a raw index.md static copy. README.md was also being silently included in the deployed site.

Changes

  • index.md — added layout: default front matter so Jekyll only produces index.html; eliminates the raw index.md duplicate in the artifact
  • _config.yml — added exclude: [README.md] to prevent README.md from being deployed as a static file
  • .github/workflows/pages.yml — new explicit Pages workflow using the recommended configure-pagesjekyll-build-pagesupload-pages-artifactdeploy-pages pipeline, replacing reliance on the automatic pages-build-deployment workflow

To activate the custom workflow, change Settings → Pages → Source from "Deploy from a branch" to "GitHub Actions".

- Add YAML front matter to index.md so Jekyll only outputs index.html
  (not a duplicate raw index.md static copy in the artifact)
- Exclude README.md from Jekyll build via _config.yml
- Add .github/workflows/pages.yml custom Pages workflow using recommended
  actions/configure-pages + jekyll-build-pages + deploy-pages approach
Copilot AI changed the title [WIP] Fix failing GitHub Actions job 'deploy' Fix GitHub Pages deploy failure caused by duplicate artifact files and missing front matter Jul 6, 2026
Copilot AI requested a review from janbender July 6, 2026 15:07

@janbender janbender left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay

@janbender
janbender marked this pull request as ready for review July 6, 2026 15:10
@janbender
janbender merged commit f2b1917 into main Jul 6, 2026
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.

2 participants