Skip to content

Commit db300dd

Browse files
committed
Update docs.yml
1 parent 1724dce commit db300dd

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

.github/workflows/docs.yml

+21-5
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,18 @@ jobs:
3535
- name: Build Documentation
3636
run: |
3737
cd docs
38-
sphinx-build -b html . _build/html -v -w /tmp/sphinx-log
39-
cat /tmp/sphinx-log
38+
make html
39+
echo "Contents of _build/html directory:"
40+
ls -R _build/html
4041
continue-on-error: true
42+
43+
- name: Debug Build Output
44+
if: always()
45+
run: |
46+
echo "Current directory:"
47+
pwd
48+
echo "Contents of docs/_build directory:"
49+
ls -R docs/_build
4150
4251
- name: Display Sphinx build log
4352
if: failure()
@@ -48,7 +57,14 @@ jobs:
4857
ls -R docs/_build/html
4958
5059
- name: Deploy to GitHub Pages
51-
uses: peaceiris/actions-gh-pages@v3
60+
uses: JamesIves/github-pages-deploy-action@v4
5261
with:
53-
github_token: ${{ secrets.GITHUB_TOKEN }}
54-
publish_dir: ./docs/_build/html
62+
folder: docs/_build/html
63+
clean: true # Removes existing files from the branch, ensuring a clean slate
64+
clean-exclude: |
65+
.nojekyll
66+
67+
- name: Add .nojekyll file
68+
run: |
69+
cd docs/_build/html
70+
touch .nojekyll

0 commit comments

Comments
 (0)