There are 2 methods.
-
Update
vite.config.js
base property to match the name of the repository. For example,base: "/2d-portfolio-kaboom"
-
Navigate to the repository settings on GitHub and configure GitHub pages to use GitHub Actions by creating a custom workflow. Read this for more info.
-
After setting up the custom workflow, go to the Actions tab within the repository. From there, select the workflow you created in step 2 and trigger the deployment process.
-
The portfolio should now be live and accessible through GitHub pages.
- Run
npm run build
. - Take the resulting content of the
dist
folder and put it in a new GitHub repository. - Activate GitHub pages in your new repository's settings.