Skip to content

Commit 7e43f2f

Browse files
authored
Create .nojekyll in GitHub Action workflow
My Sphinx docs did not display correctly until I added this line to create a `.nojekyll` file in the `gh-pages` branch root folder. This is because otherwise, the folders beginning with an underscore are ignored by GitHub Pages.
1 parent d65a3c7 commit 7e43f2f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/default.yml

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
git clone https://github.com/ammaraskar/sphinx-action-test.git --branch gh-pages --single-branch gh-pages
4646
cp -r docs/_build/html/* gh-pages/
4747
cd gh-pages
48+
touch .nojekyll
4849
git config --local user.email "[email protected]"
4950
git config --local user.name "GitHub Action"
5051
git add .

0 commit comments

Comments
 (0)