Static site, built and published by .github/workflows/deploy.yml
using the official withastro/action
and the GitHub Pages artifact flow.
There is no gh-pages branch. Built output is uploaded directly to the
Pages service as an artifact — nothing committed back to git.
| When | |
|---|---|
| Auto | Push to main |
| Manual | bun run deploy (= gh workflow run deploy.yml --ref main) or the Run workflow button on the Actions tab |
bun run deploy builds on the CI runner, not locally. To check what
will ship before triggering a deploy, run bun run build && bun run preview.
After the repo's first push:
- Settings → Pages → Source:
GitHub Actions. Without this the workflow runs but nothing publishes. - Settings → Pages → Custom domain:
workspace.sh. Tick Enforce HTTPS once DNS propagates (see dns.md). - Settings → Branches → Default branch: switch to
develop.
develop(default) — day-to-day work.main— what should ship. Merging intomaintriggers a deploy.
bun install
bun run dev # http://localhost:4321 with hot reload
bun run build # production build → ./dist
bun run preview # serve ./dist locally — exact CI output
bun run deploy # dispatch the deploy workflow on mainAstro 6 needs Node ≥ 22.12. If
bun runcomplains about Node 18,nvm use 22.