GitHub Pages Integration
约 163 字小于 1 分钟
2024-06-02
提示
You can refer to the official documentation for more details.
The Workflow
Currently, this site is deployed to GitHub Pages through the workflow defined below. It is more practical than the default workflow provided by VuePress.
详情
.github/workflows/deploy.yml
File not found
The Configuration
Repository Settings
You simply need to enable the GitHub Pages feature on your repository in the settings.
- Go to Settings > Pages > Build and deployment.
- From Source, select GitHub Actions.
Known Issues
Vue Router
Vue Router won't work properly on GitHub Pages sites unless they are deployed to the repository <USERNAME>.github.io
directly, which means, it cannot handle a base
option beyond /
.
This is unfixable as it also happens in single page applications that use Vue Router. I recommend using a custom domain or using VitePress instead.