Skip to content

Commit 00ad7b3

Browse files
committed
debug
1 parent c92fd60 commit 00ad7b3

File tree

1 file changed

+31
-4
lines changed

1 file changed

+31
-4
lines changed

โ€Ž.github/workflows/deploy-gh-pages.yml

+31-4
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,47 @@ defaults:
1212
jobs:
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
@@ -41,3 +67,4 @@ jobs:
4167
user_name: "GitHub Action"
4268
user_email: "[email protected]"
4369
commit_message: "Rebuild w/ ${{ github.event.head_commit.message }}"
70+
allow_empty_commit: true

0 commit comments

Comments
ย (0)