mirror of
https://github.com/zhigang1992/react-native-paper.git
synced 2026-01-12 22:50:35 +08:00
chore: improve deploy-docs script
This commit is contained in:
@@ -48,15 +48,16 @@ cd dist
|
||||
git config user.name "$COMMIT_AUTHOR_NAME"
|
||||
git config user.email "$COMMIT_AUTHOR_EMAIL"
|
||||
|
||||
git add -A .
|
||||
|
||||
# If there are no changes to the compiled dist (e.g. this is a README update) then just bail.
|
||||
if git diff --quiet; then
|
||||
if git diff --cached --quiet; then
|
||||
echo "No changes to the output on this push; exiting."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Commit the "changes", i.e. the new version.
|
||||
# The delta will show diffs between new and old versions.
|
||||
git add -A .
|
||||
git commit -m "Deploy to GitHub Pages: ${SHA}"
|
||||
|
||||
# Now that we're all set up, we can push.
|
||||
|
||||
Reference in New Issue
Block a user