Skip to content

Fix deploy workflow silently dropping build artifacts - #2

Merged
michielbdejong merged 1 commit into
mainfrom
claude/modernize-app-smoke-tests-1chavg
Jul 24, 2026
Merged

michielbdejong merged 1 commit into
mainfrom
claude/modernize-app-smoke-tests-1chavg

Conversation

@michielbdejong

Copy link
Copy Markdown
Member

Summary

The Deploy workflow added in #1 published straight from the repo checkout (publish_dir: .). Since that checkout's own .gitignore now lists litewrite.min.js, service-worker.js, and workbox-*.js as build artifacts, peaceiris/actions-gh-pages respected it when copying publish_dir and silently dropped exactly the files the live site needs. This was confirmed after a deploy run: the resulting gh-pages branch had everything except those three files.

  • Stage a clean site/ directory containing only the runtime files (index.html, the built JS/service worker, CNAME, img/, style/) and publish that instead, so .gitignore has no bearing on what gets copied
  • Drop gh-pages from CI's push triggers now that the source branch has been renamed to main

Test plan

  • npm run build + manually assembled the site/ staging directory locally — confirmed litewrite.min.js, litewrite.min.js.LICENSE.txt, service-worker.js, and workbox-*.js are all present this time
  • npm run lint passes clean

Generated by Claude Code

peaceiris/actions-gh-pages was publishing straight from the repo
checkout (publish_dir: .), so the checkout's own .gitignore -- which
now lists litewrite.min.js/service-worker.js/workbox-*.js as build
artifacts -- got copied along and caused those exact files to be
silently excluded from the published gh-pages branch.

Stage a clean site/ directory with only the runtime files instead, so
gitignore has no bearing on what gets published. Also drop the now
gone gh-pages branch from CI's push triggers (the source branch was
renamed to main).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016dMGgm5wjaHdA4CBZLRi8Z
@michielbdejong
michielbdejong merged commit 85151fd into main Jul 24, 2026
1 check passed
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