Skip to content

Commit 6f4737c

Browse files
MAINT: Modify the gh-pages workflow to build the dev. docs in a subdirectory. (#12)
1 parent f536b05 commit 6f4737c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/publish_docs_to_pages.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,16 @@ jobs:
5858
git fetch origin gh-pages
5959
echo "Checking out gh-pages branch"
6060
git checkout gh-pages
61-
echo "Removing old documentation"
61+
echo "Removing old dev documentation"
6262
git clean -xdf .
63+
cd dev
6364
git rm -r '*'
64-
echo "Committing empty repository"
65-
git commit -m "Remove old documentation"
65+
echo "Committing emptied dev directory"
66+
git commit -m "Remove old dev documentation"
6667
echo "Copying /tmp/html here"
6768
cp -v -r /tmp/html/* .
68-
touch .nojekyll
69-
echo "Adding new documentation"
70-
git add -A
71-
git commit -m "Add new documentation"
69+
echo "Adding new dev documentation"
70+
git add -A .
71+
git commit -m "Add new dev documentation"
7272
echo "Pushing new documentation to origin"
7373
git push -v origin gh-pages

0 commit comments

Comments
 (0)