File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish docs via GitHub Pages
2
+
2
3
on :
3
4
push :
4
5
branches :
5
6
- develop
7
+ pull_request :
8
+ branches :
9
+ - develop
10
+
6
11
jobs :
7
12
build :
8
13
name : Deploy docs
9
14
if : " github.repository == 'OpenMathLib/OpenBLAS'"
10
15
runs-on : ubuntu-latest
11
16
steps :
12
17
- uses : actions/checkout@v4
18
+ with :
19
+ fetch-depth : 0
20
+
13
21
- uses : actions/setup-python@v5
14
22
with :
15
23
python-version : " 3.10"
16
- - run : pip install mkdocs mkdocs-material
17
- # mkdocs gh-deploy command only builds to the top-level, hence building then deploying ourselves
18
- - run : mkdocs build
24
+
25
+ - name : Install MkDocs and doc theme packages
26
+ run : pip install mkdocs mkdocs-material mkdocs-git-revision-date-localized-plugin
27
+
28
+ - name : Build docs site
29
+ run : mkdocs build
30
+
31
+ # mkdocs gh-deploy command only builds to the top-level, hence deploying
32
+ # with this action instead.
33
+ # Deploys to http://www.openmathlib.org/OpenBLAS/docs/
19
34
- name : Deploy docs
20
35
uses : peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
21
36
if : ${{ github.ref == 'refs/heads/develop' }}
You can’t perform that action at this time.
0 commit comments