Commit 00e0c9e
committed
Deploy my-app to GitHub Pages at niteshacars.in
Adds a workflow that builds my-app and publishes it to GitHub Pages, plus
the CNAME for the custom domain.
The workflow installs with `npm ci`, lints, builds, and uploads my-app/dist
as the Pages artifact. It triggers on pushes to main that touch my-app/, and
on manual dispatch. Because it is scoped to main, merging is what deploys;
nothing publishes from a feature branch.
`public/CNAME` is copied verbatim into dist/ by Vite, landing at the site
root where Pages looks for it.
Vite's default base of '/' is correct here: a custom domain serves from the
root, and the built asset paths are root-relative to match.
Verified by running the workflow's exact steps locally -- npm ci, npm run
lint, npm run build -- and confirming dist/ contains CNAME, index.html with
root-relative asset URLs, and the hashed JS/CSS bundles.
Deploying still needs two manual steps that cannot be done from here:
enabling Pages with the GitHub Actions source, and pointing DNS at GitHub.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf1 parent 976a61b commit 00e0c9e
3 files changed
Lines changed: 72 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments