Skip to content

Commit

Permalink
Merge pull request #21 from Nia-Server/main
Browse files Browse the repository at this point in the history
FIX
  • Loading branch information
NIANIANKNIA authored Jun 16, 2024
2 parents caf0ad6 + c7126a3 commit 78ce6d6
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,6 @@ jobs:
- name: Build VuePress site
run: pnpm docs:build

# 查看 workflow 的文档来获取更多信息
# @see https://github.com/crazy-max/ghaction-github-pages
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v2
with:
# 部署到 gh-pages 分支
target_branch: gh-pages
#保留历史
keep_history: false
# 部署目录为 VuePress 的默认输出目录
build_dir: docs/.vuepress/dist
env:
# @see https://docs.github.com/cn/actions/reference/authentication-in-a-workflow#about-the-github_token-secret
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Push to NiaServer-Docs-CN
run: |
git config --global user.name 'GitHub Actions'
Expand All @@ -67,3 +52,19 @@ jobs:
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 }}

# 查看 workflow 的文档来获取更多信息
# @see https://github.com/crazy-max/ghaction-github-pages
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v2
with:
# 域名设置为docs.mcnia.com
fqdn: docs.mcnia.com
# 部署到 gh-pages 分支
target_branch: gh-pages
#保留历史
keep_history: false
# 部署目录为 VuePress 的默认输出目录
build_dir: docs/.vuepress/dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 78ce6d6

Please sign in to comment.