We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b69640 commit fa2a487Copy full SHA for fa2a487
.github/workflows/ci.yml
@@ -3,6 +3,9 @@ on:
3
push:
4
branches:
5
- main
6
+ pull_request:
7
+ branches:
8
+ - main
9
permissions:
10
contents: write
11
jobs:
@@ -24,7 +27,11 @@ jobs:
24
27
path: .cache
25
28
restore-keys: |
26
29
mkdocs-material-
- - run: pip install jieba
- - run: pip install mkdocs-material
- - run: pip install mkdocs-static-i18n
30
- - run: mkdocs gh-deploy --force
+ - name: Install dependencies
31
+ run: pip install mkdocs-material mkdocs-static-i18n jieba
32
+ - name: Build for Pull Request check
33
+ if: github.event_name == 'pull_request'
34
+ run: mkdocs build --verbose
35
+ - name: Deploy to gh-pages
36
+ if: github.event_name == 'push' && github.ref == 'refs/heads/main'
37
+ run: mkdocs gh-deploy --force
0 commit comments