Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ACaiCat committed Dec 31, 2024
2 parents f900da6 + 9e9d200 commit 0040439
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: docs

on:
schedule:
- cron: '0 0 * * *' # 每天UTC时间0:00执行
push:
branches:
- master
Expand All @@ -16,6 +18,22 @@ jobs:
fetch-depth: 0
submodules: 'recursive'

- name: Update Docs
continue-on-error: true
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git pull
git submodule update --init
git submodule update --remote
git add .
if git diff --staged --quiet; then
echo "跳过更新:子模块没有变化"
else
git commit -m "自动更新子模块 [skip ci]"
git push
fi
- name: Copy Docs
shell: pwsh
run: |
Expand All @@ -34,7 +52,6 @@ jobs:

- name: Build documentation site
run: pnpm docs:build
continue-on-error: true

- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v4
Expand Down
2 changes: 1 addition & 1 deletion TShockPlugin
Submodule TShockPlugin updated 175 files

0 comments on commit 0040439

Please sign in to comment.