Skip to content

Commit

Permalink
修复action报错
Browse files Browse the repository at this point in the history
  • Loading branch information
NIANIANKNIA committed Jun 17, 2024
1 parent 5efacb7 commit c0e8452
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,9 @@ jobs:
git rm -rf .
cp -r ../src/.vuepress/dist/* .
git add .
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 }}

- name: Create CNAME file
run: echo "docs.mcnia.top" > CNAME

- name: Commit and Push CNAME file
run: |
git config --local user.name "GitHub Action"
git config --local user.email "action@github.com"
echo "docs.mcnia.top" > CNAME # 直接在这里创建CNAME文件
git add CNAME
git commit -m "Add CNAME file"
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 }}

0 comments on commit c0e8452

Please sign in to comment.