Skip to content

Commit f741901

Browse files
authored
build: Make docs publish more robust. (#85)
1 parent ae27bb0 commit f741901

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

scripts/publish-doc.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ doc_name=$($base_name/doc-name.sh $WORKSPACE)
1212
# Move the built docs so switching branches doesn't conflict.
1313
mv $WORKSPACE/docs $RUNNER_TEMP/doc-temp
1414

15-
# Fetch the gg-pages branch.
16-
# git fetch origin gh-pages
17-
18-
# Switch to the pages branch.
19-
# git checkout gh-pages
20-
2115
# Action should have cloned the gh-pages to a subdirectory.
2216
cd gh-pages
2317

@@ -51,4 +45,7 @@ git add $WORKSPACE/docs
5145

5246
git commit -m "chore: Updating docs for $doc_name"
5347

48+
# Update the local copy in case there have been any interim changes.
49+
# If this works inconsistently, then additional checks should be done.
50+
git pull --no-edit
5451
git push

0 commit comments

Comments
 (0)