Github Pages 部署流程解析
上周末在搭建个人锻炼页面时,遇到个Github Pages部署的困惑。 看了running_page项目文档,是支持部署到Github Pages页面的,对应的操作流程定义在github/workflows/gh-pages.yml文件。 - name: Install dependencies run: pnpm install - name: Build run: PATH_PREFIX=/${{ github.event.repository.name }} pnpm build - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: # Upload dist repository path: './dist' - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 核心逻辑就是上面这段。 ...