We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a517ed commit f78b016Copy full SHA for f78b016
1 file changed
deploy_docs.sh
@@ -23,11 +23,17 @@ echo "Generating docs..."
23
mix docs
24
25
# Push to GitHub
26
-echo "Pushing to GitHub..."
+echo "Checking GitHub..."
27
cd doc
28
git add .
29
-git commit -m "Update docs"
30
-git push -u origin gh-pages:gh-pages --force
+if git diff-index --quiet HEAD;
+then
31
+ echo "Nothing to update."
32
+else
33
+ echo "Pushing to GitHub..."
34
+ git commit -m "Update docs"
35
+ git push -u origin gh-pages:gh-pages --force
36
+fi
37
38
# Exit successfully
39
exit 0
0 commit comments