Skip to content

Commit

Permalink
Update update-gh-pages-documentation-site
Browse files Browse the repository at this point in the history
  • Loading branch information
cbaker6 authored Dec 22, 2022
1 parent 182196c commit aaadbce
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Scripts/update-gh-pages-documentation-site
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ CURRENT_COMMIT_HASH=`git rev-parse --short HEAD`
cd gh-pages
git add "$DEPLOYMENT_SUBDIRECTORY"

if [ -n "$(git status --porcelain)" ]; then
#if [ -n "$(git status --porcelain)" ]; then
echo "Documentation changes found. Commiting the changes to the 'gh-pages' branch and pushing to origin."
git commit -m "Update documentation to $CURRENT_COMMIT_HASH on '$CURRENT_BRANCH_NAME'"
git push origin HEAD:gh-pages
else
# No changes found, nothing to commit.
echo "No documentation changes found."
fi
#else
# # No changes found, nothing to commit.
# echo "No documentation changes found."
#fi

# Delete the git worktree we created
cd ..
git worktree remove gh-pages
git worktree remove gh-pages

0 comments on commit aaadbce

Please sign in to comment.