Skip to content

Commit

Permalink
upd deploy to github-pages (#537)
Browse files Browse the repository at this point in the history
* 更新部署 github-pages 说明

* Update Deploy to Github-pages

---------

Co-authored-by: haowei.chen <chenhaowei93@163.com>
  • Loading branch information
haowei93 and harryhook committed Nov 3, 2023
1 parent 2ff0529 commit ccb1db1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,13 @@ python3(python) run_page/gen_svg.py --from-db --type circular --use-localtime

4. 为 GitHub Actions 添加代码提交权限,访问仓库的 `Settings > Actions > General`页面,找到 `Workflow permissions` 的设置项,将选项配置为 `Read and write permissions`,支持 CI 将运动数据更新后提交到仓库中。


5. 如果想把你的 running_page 部署在 xxx.github.io 而不是 xxx.github.io/run_page,需要做三点

- 修改你的 fork 的 running_page 仓库改名为 xxx.github.io, xxx 是你 github 的 username
- 修改 gh-pages.yml 中的 Build 模块,删除 `${{ github.event.repository.name }}` 改为`run: PATH_PREFIX=/ pnpm build` 即可
- src/static/site-metadata.ts 中 `siteUrl: ''` 即可

</details>

## GitHub Actions
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,14 @@ For more display effects, see:

4. make sure you have write permissions in Workflow permissions settings.



5. If you want to deploy your running_page to xxx.github.io instead of xxx.github.io/running_page, you need to do three things:

- Rename your forked running_page repository to `xxx.github.io`, where xxx is your GitHub username
- Modify the Build module in gh-pages.yml, remove `${{ github.event.repository.name }}` and change to `run: PATH_PREFIX=/ pnpm build`
- In `src/static/site-metadata.ts`, set siteUrl: ''

</details>

## GitHub Actions
Expand Down

1 comment on commit ccb1db1

@vercel
Copy link

@vercel vercel bot commented on ccb1db1 Nov 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

running-page – ./

running-page.vercel.app
running-page-yihong0618.vercel.app
running-page-git-master-yihong0618.vercel.app

Please sign in to comment.