Pages can serve html files directly, so you can have an action that uses vite to build to static files (with an index.html) and store them in a deployment branch. Then you point the gh pages thingy at that branch and voila it works.
Welcome to github actions + github pages! I'll be your guide. Put various things in a YAML file, and hope the other settings are correct, and have source files in one branch, and the build in a gh-pages branch. Easy peasy!
i'm pretty sure pages just serves html
build with actions and then copy the build folder to the root of the repo and commit it
at least i think that's what you're supposed to do
Comments
At least that's what I did many years ago.
https://github.com/D-Bhatta/Portfolio-Main/blob/main/.github%2Fworkflows%2Fpush_gh_pages.yml
You gotta add a build step to it, and it should work.
https://github.blog/news-insights/bypassing-jekyll-on-github-pages/
(good luck....)
build with actions and then copy the build folder to the root of the repo and commit it
at least i think that's what you're supposed to do
I find both confusing and use the time honoured practice of "one more edit" commit messages 10x in a row until it works.