File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- main
7
7
paths :
8
- # Only rebuild website when docs have changed
8
+ - ' README.md'
9
+ - ' CHANGELOG.md'
10
+ - ' CONTRIBUTING.md'
11
+ - ' docs/**'
12
+ pull_request :
13
+ paths :
9
14
- ' README.md'
10
15
- ' CHANGELOG.md'
11
16
- ' CONTRIBUTING.md'
12
17
- ' docs/**'
13
18
14
19
jobs :
15
- build :
16
- name : Deploy docs
20
+ docs :
21
+ name : ${{ github.event_name == 'push' && ' Deploy docs' || 'Build docs' }}
17
22
runs-on : ubuntu-latest
18
23
steps :
19
24
- uses : actions/checkout@v4
28
33
python -m pip install --upgrade pip
29
34
python -m pip install mkdocs mkdocs-material mkdocs-jupyter pandas seaborn folium
30
35
36
+ - name : Build docs
37
+ if : github.event_name == 'pull_request'
38
+ run : mkdocs build -f docs/mkdocs.yml
39
+
31
40
- name : Deploy docs
41
+ if : github.event_name == 'push'
32
42
run : mkdocs gh-deploy --force -f docs/mkdocs.yml
You can’t perform that action at this time.
0 commit comments