Skip to content

Fix GitHub Pages deployment race#24

Merged
jserv merged 1 commit intomainfrom
fix-deploy
Mar 6, 2026
Merged

Fix GitHub Pages deployment race#24
jserv merged 1 commit intomainfrom
fix-deploy

Conversation

@jserv
Copy link
Contributor

@jserv jserv commented Mar 6, 2026

The automatic pages-build-deployment workflow (Jekyll) runs on every push to main and renders README.md as the site. It was finishing after our WASM deployment, overwriting it. The live site showed README content instead of the WebAssembly demo.

Changes to deploy-pages job:

  • Wait for the automatic Jekyll build to complete before deploying, polling by commit SHA to target only the run from this push
  • Add .nojekyll to the deployed artifact to suppress Jekyll processing
  • Add actions:read permission required by gh run list

Summary by cubic

Fixes a race where GitHub’s automatic Jekyll build overwrote our WASM site on deploy. The WebAssembly demo now persists after pushes to main.

  • Bug Fixes

    • Wait for the pages-build-deployment run for this commit to finish before deploying (poll by commit SHA via gh run list; requires actions:read).
    • Add .nojekyll to the deployed artifact to disable Jekyll processing.
  • Dependencies

    • Bump actions/upload-artifact to v7 for test and WASM artifacts.

Written for commit 570347b. Summary will update on new commits.

cubic-dev-ai[bot]

This comment was marked as resolved.

The automatic pages-build-deployment workflow (Jekyll) runs on every
push to main and renders README.md as the site. It was finishing after
our WASM deployment, overwriting it. The live site showed README
content instead of the WebAssembly demo.

Changes to deploy-pages job:
- Wait for the automatic Jekyll build to complete before deploying,
  polling by commit SHA to target only the run from this push
- Add .nojekyll to the deployed artifact to suppress Jekyll processing
- Add actions:read permission required by gh run list
@jserv jserv merged commit 0191867 into main Mar 6, 2026
11 checks passed
@jserv jserv deleted the fix-deploy branch March 6, 2026 17:58
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