File tree Expand file tree Collapse file tree 1 file changed +31
-4
lines changed Expand file tree Collapse file tree 1 file changed +31
-4
lines changed Original file line number Diff line number Diff line change @@ -12,21 +12,47 @@ defaults:
1212jobs :
1313 make-html :
1414 runs-on : ubuntu-latest
15+ permissions :
16+ contents : write
1517 steps :
16- - name : Make Sphinx documentation for PyTorchLightning
18+ - name : Checkout
1719 uses : actions/checkout@v3
1820 with :
1921 submodules : true
20- - uses : actions/setup-python@v4
22+
23+ - name : Setup Python
24+ uses : actions/setup-python@v4
2125 with :
2226 python-version : ' 3.10'
2327 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 : |
2548 git config --global --add safe.directory '*' # to allow sphinx to write to any directory
2649 ls -alF docs/
2750 make docs
2851 continue-on-error : true
29- - run : |
52+
53+ - name : Debug message
54+ run : |
55+ cat /tmp/sphinx-err-*
3056 ls -alF docs/build/html
3157 pip freeze
3258
4167 user_name : " GitHub Action"
4268 user_email : " reserve.dev@gmail.com"
4369 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