We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c39678 commit 0fb9c9dCopy full SHA for 0fb9c9d
1 file changed
publish.sh
@@ -40,8 +40,12 @@ echo "Pushing update"
40
git config user.name "Travis CI"
41
git config user.email "github@fb.com"
42
git add -A .
43
-git commit -a -m "Deploy to GitHub Pages"
44
-git push > /dev/null 2>&1
+if git diff --staged --quiet; then
+ echo "Nothing to publish"
45
+else
46
+ git diff --quiet git commit -a -m "Deploy to GitHub Pages"
47
+ git push > /dev/null 2>&1
48
+ echo "Pushed"
49
+fi
50
-echo "Pushed"
51
popd > /dev/null 2>&1
0 commit comments