this is the repository to my website on github pages
- setup a github pages project by creating a repository called username.github.io where username is your github username
- scaffold a vue + vite project:
npm create vite@latest- build your project:
npm run build- make sure to remove
distfrom the standard .gitignore in the vite template - commit & push everything
- run the following git command to create a branch called gh-pages as a subtree of your main branch, meaning that gh-pages will contain everything in your dist folder and nothing else
git subtree push --prefix dist origin gh-pages- go into the settings of your repository and under "Pages" set gh-pages as the branch to deploy from
now you're all set up!
remember to repeat the build and subtree commands to update the website
i started using issues like a todo list for myself, so they don't always make sense without context. feel free to create an issue though if there is anything.