Skip to content

Publish the app to GitHub Pages - #3

Merged
algometrix merged 1 commit into
mainfrom
ci/github-pages
Jul 31, 2026
Merged

Publish the app to GitHub Pages#3
algometrix merged 1 commit into
mainfrom
ci/github-pages

Conversation

@algometrix

Copy link
Copy Markdown
Owner

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 to main
    and deploys dist. It runs typecheck, tests and build first, so a broken
    commit 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 a
    subpath and from a domain root both, so the build is not tied to one host.
  • A link at the top of the README.

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

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>
@algometrix
algometrix merged commit a24026f into main Jul 31, 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.

1 participant