Skip to content

Commit

Permalink
修改action部署错误
Browse files Browse the repository at this point in the history
  • Loading branch information
NIANIANKNIA committed Dec 23, 2024
1 parent 2a00ff1 commit 9e8fd5d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,3 @@ jobs:
# 部署文档
branch: gh-pages
folder: src/.vuepress/dist

- name: Push to NiaServer-Docs-CN
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email 'actions@github.com'
git clone https://github.com/Nia-Server/NiaServer-Docs-CN.git
cd NiaServer-Docs-CN
git checkout gh-pages || git checkout --orphan gh-pages
git rm -rf .
cp -r ../src/.vuepress/dist/* .
git add .
echo "docs.mcnia.top" > CNAME # 直接在这里创建CNAME文件
git add CNAME
git commit -m "Update docs"
git push --force "https://${{ secrets.PUSH_REPO_TOKEN }}@github.com/Nia-Server/NiaServer-Docs-CN.git" gh-pages
env:
GITHUB_TOKEN: ${{ secrets.PUSH_REPO_TOKEN }}
2 changes: 1 addition & 1 deletion src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ highlights:
- title: NIAHttpBOT
icon: server
details: 基于http实现对文件进行读写操作等操作,赋予了原版script-api更多的能力
link: /dev/Http-BOT/
link: /dev/Http-Bot/

- title: 完善的开发文档
icon: file
Expand Down
3 changes: 0 additions & 3 deletions src/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@ title: 关于本网站

## 📇网站构建状态

### 主站(docs.mcnia.com)

![status](https://img.shields.io/github/actions/workflow/status/Nia-Server/NiaServer-Docs/deploy-docs.yml?style=for-the-badge)
![GitHub last commit](https://img.shields.io/github/last-commit/Nia-Server/NiaServer-Docs?style=for-the-badge)


## 🧵网站基本信息

国内用户请访问镜像网站 [docs.mcnia.top](http://docs.mcnia.top)

网站基于github-page部署,使用[VuePress](https://v2.vuepress.vuejs.org/)构建

Expand Down

0 comments on commit 9e8fd5d

Please sign in to comment.