Know-Hows
VitePress
Publishing to GitHub Pages
- Create a file named
.github/workflows/deploy.ymlwith the build process
WARNING
Make sure the base option in your VitePress is properly configured
- Create the subdomain
- Add a
CNAMEfile JUST with the subdomain name - In your repository's settings under "Pages" menu item:
- Select "GitHub Actions" in "Build and deployment > Source".
- Add a custom domain with the subdomain you created
- Push your changes to the
mainbranch
Tooling
Deploying a new version
- Modify the code you need
- Run one of these:bash
$ pnpm release:patch # creates a patch version $ pnpm release:minor # creates a minor version $ pnpm release:major # creates a major version1
2
3