Skip to content

Commit

Permalink
更改仓库名为 Bioit-top, 调整其他配置适应
Browse files Browse the repository at this point in the history
  • Loading branch information
shenweiyan committed May 14, 2024
1 parent 7c299c8 commit 1beadad
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/HugoAction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
#run: hugo --minify # 使用 hugo 构建静态网页
run: hugo # 使用 hugo 构建静态网页

- name: Deploy To NavBioIT # 部署至当前仓库的其他分支
- name: Deploy To Bioit-top # 部署至当前仓库的其他分支
uses: peaceiris/actions-gh-pages@v3 # 一个自动发布github pages的action
with:
external_repository: shenweiyan/NavBioIT # 发布到哪个repo
external_repository: shenweiyan/Bioit-top # 发布到哪个repo
#1. 创建 Personal_Access_Token:
# GitHub 个人账号 -> Settings -> Developer settings -> Personal access tokens -> Tokens (classic) -> New personal access token (classic)
# - Expiration: No expiration
Expand All @@ -39,4 +39,5 @@ jobs:
#发布到哪个branch
publish_branch: gh-pages
force_orphan: true
cname: gh-pages.bioit.top
full_commit_message: ${{ github.event.head_commit.message }}
6 changes: 3 additions & 3 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
git branch --track ${branch##*/} $branch
done
env:
GITHUB_REPOSITORY: shenweiyan/NavBioITee
GITHUB_REPOSITORY: shenweiyan/Bioit-top
GITHUB_USERNAME: ${{ secrets.GH_USERNAME }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

Expand All @@ -45,7 +45,7 @@ jobs:
dst: gitee/shenweiyan
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
static_list: "NavBioIT"
static_list: "Bioit-top"
force_update: true
timeout: '0.5h'

Expand All @@ -59,5 +59,5 @@ jobs:
git push --all --force gitcode
git push --tags --force gitcode
env:
GITCODE_REPOSITORY: shenweiyan/NavBioIT
GITCODE_REPOSITORY: shenweiyan/Bioit-top
GITCODE_PAT: ${{ secrets.GITCODE_PAT }}
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
下载更新,更新子模块。

```
$ git clone https://github.com/shenweiyan/NavBioIT.git
$ cd NavBioIT
$ git clone https://github.com/shenweiyan/Bioit-top.git
$ cd Bioit-top
$ git submodule update --init --recursive
$ cd themes/WebStack-Hugo
$ git pull https://github.com/shenweiyan/WebStack-Hugo.git
Expand All @@ -22,9 +22,9 @@ $ git pull https://github.com/shenweiyan/WebStack-Hugo.git

通过 GitHub Actions - [HugoAction.yml](https://github.com/shenweiyan/NavBioIT/blob/main/.github/workflows/HugoAction.yml),本源码执行自动构建,并发布到以下仓库。

发布至 GitHub 的 **[NavBioIT](https://github.com/shenweiyan/NavBioIT)**(即本仓库)的 [gh-pages](https://github.com/shenweiyan/NavBioIT/tree/gh-pages) 分支:
发布至 GitHub 的 **[Bioit-top](https://github.com/shenweiyan/Bioit-top)**(即本仓库)的 [gh-pages](https://github.com/shenweiyan/Bioit-top/tree/gh-pages) 分支:

- [gh-pages](https://github.com/shenweiyan/NavBioIT/tree/gh-pages) 分支部署至 [Netlify](https://app.netlify.com/),同时绑定 [https://bioit.top](https://bioit.top)**国内访问相对快一些!**
- [gh-pages](https://github.com/shenweiyan/Bioit-top/tree/gh-pages) 分支部署至 [Netlify](https://app.netlify.com/),同时绑定 [https://bioit.top](https://bioit.top)**国内访问相对快一些!**

- [gh-pages](https://github.com/shenweiyan/NavBioIT/tree/gh-pages) 分支部署至 [Cloudflare Pages](https://pages.cloudflare.com/),同时绑定 [https://nav.bioit.top](https://nav.bioit.top)**国内访问可能有一定延迟。**
- [gh-pages](https://github.com/shenweiyan/Bioit-top/tree/gh-pages) 分支部署至 [Cloudflare Pages](https://pages.cloudflare.com/),同时绑定 [https://nav.bioit.top](https://nav.bioit.top)**国内访问可能有一定延迟。**

0 comments on commit 1beadad

Please sign in to comment.