Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: write
jobs:
Expand All @@ -24,7 +27,11 @@ jobs:
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install jieba
- run: pip install mkdocs-material
- run: pip install mkdocs-static-i18n
- run: mkdocs gh-deploy --force
- name: Install dependencies
run: pip install mkdocs-material mkdocs-static-i18n jieba
- name: Build for Pull Request check
if: github.event_name == 'pull_request'
run: mkdocs build --verbose
- name: Deploy to gh-pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: mkdocs gh-deploy --force