Skip to content

Commit 6fb43fb

Browse files
Add re-synchronization of gh-pages branch in 'docs-prep.sh'
1 parent cababca commit 6fb43fb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build/docs-prep.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,18 @@ if [ $? -ne 0 ]; then
7676
fi
7777
print_success "Switched to gh-pages branch"
7878

79+
git reset --hard origin/gh-pages
80+
if [ $? -ne 0 ]; then
81+
print_error "Failed to reset to origin/gh-pages. Check your git configuration."
82+
fi
83+
print_success "Reset to origin/gh-pages"
84+
85+
git pull origin gh-pages
86+
if [ $? -ne 0 ]; then
87+
print_error "Failed to pull from origin/gh-pages. Check your network connection and git configuration."
88+
fi
89+
print_success "Pulled latest changes from origin/gh-pages"
90+
7991
# Step 4: Create a new branch for the update
8092
print_info "Creating new branch ${NEW_BRANCH}"
8193
execute "git checkout -b ${NEW_BRANCH}"

0 commit comments

Comments
 (0)