Publish the app to GitHub Pages - #3
Merged
Merged
Conversation
Builds on every push to main and deploys the result, behind the same gates CI runs: a failing typecheck, test or build never reaches the live page. Asset URLs are now relative (`base: './'`) rather than absolute. A project site is served from /blackhole-sim/, and the default absolute paths would ask for /assets/... at the domain root and 404. Relative paths work both from a subpath and from a domain root, so this does not tie the build to one host. Deployments queue rather than cancel, so a push that lands mid-deploy still ends up published. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Live at https://algometrix.github.io/blackhole-sim/ once this merges.
Pages is already enabled on the repo with Actions as the source, so merging
this is the only remaining step.
What is in here:
.github/workflows/deploy-pages.yml, which builds on every push tomainand deploys
dist. It runs typecheck, tests and build first, so a brokencommit never reaches the live page. Deployments queue rather than cancel,
so a push landing mid-deploy still gets published.
base: './'in the Vite config. A project site is served from/blackhole-sim/, and Vite's default absolute paths would request/assets/...at the domain root and 404. Relative paths work from asubpath and from a domain root both, so the build is not tied to one host.
Verified locally: built, served the production bundle with
vite preview,loaded it in a browser, confirmed no page errors, no failed requests, and the
renderer running normally.
🤖 Generated with Claude Code