File tree 1 file changed +31
-4
lines changed
1 file changed +31
-4
lines changed Original file line number Diff line number Diff line change @@ -12,21 +12,47 @@ defaults:
12
12
jobs :
13
13
make-html :
14
14
runs-on : ubuntu-latest
15
+ permissions :
16
+ contents : write
15
17
steps :
16
- - name : Make Sphinx documentation for PyTorchLightning
18
+ - name : Checkout
17
19
uses : actions/checkout@v3
18
20
with :
19
21
submodules : true
20
- - uses : actions/setup-python@v4
22
+
23
+ - name : Setup Python
24
+ uses : actions/setup-python@v4
21
25
with :
22
26
python-version : ' 3.10'
23
27
cache : ' pip'
24
- - run : |
28
+
29
+ - name : Upgrade pip
30
+ run : |
31
+ # install pip=>20.1 to use "pip cache dir"
32
+ python3 -m pip install --upgrade pip
33
+
34
+ - name : Get pip cache dir
35
+ id : pip-cache
36
+ run : echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
37
+
38
+ - name : Cache dependencies
39
+ uses : actions/cache@v3
40
+ with :
41
+ path : ${{ steps.pip-cache.outputs.dir }}
42
+ key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
43
+ restore-keys : |
44
+ ${{ runner.os }}-pip-
45
+
46
+ - name : Make Sphinx documentation for PyTorchLightning
47
+ run : |
25
48
git config --global --add safe.directory '*' # to allow sphinx to write to any directory
26
49
ls -alF docs/
27
50
make docs
28
51
continue-on-error : true
29
- - run : |
52
+
53
+ - name : Debug message
54
+ run : |
55
+ cat /tmp/sphinx-err-*
30
56
ls -alF docs/build/html
31
57
pip freeze
32
58
41
67
user_name : " GitHub Action"
42
68
43
69
commit_message : " Rebuild w/ ${{ github.event.head_commit.message }}"
70
+ allow_empty_commit : true
You canโt perform that action at this time.
0 commit comments