Skip to content

Commit 98a592a

Browse files
committed
add reference to main after switching to gh-pages
1 parent 5cf84d9 commit 98a592a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build-publish-documentation.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ jobs:
6969
# generate HTML from markdown and put into dev version
7070
poetry run mike deploy dev
7171
72+
# ensure the main branch is available locally
73+
git fetch origin main
7274
# switch to gh-pages branch, copy over the latest 404.html from main
7375
git checkout --force gh-pages
74-
git checkout --force main -- 404.html
76+
git checkout --force origin/main -- 404.html
7577
git commit -m "Add 404.html to root" || echo "No changes to 404.html to commit"
7678
7779
# push changes to gh-page branch

0 commit comments

Comments
 (0)