Skip to content

Commit 8141343

Browse files
committed
Only try and deploy when necessary
1 parent 8302b8d commit 8141343

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

scripts/deploy

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ fi
1818
git checkout master
1919
cp -af ../public/* ./
2020
echo 'www.graphile.org' > CNAME
21-
git add .
22-
git commit -m"Deploy $DATE"
23-
git push origin master
21+
22+
git update-index -q --really-refresh
23+
if ! git diff-index --exit-code --name-status HEAD --; then
24+
git add .
25+
git commit -m"Deploy $DATE"
26+
git push origin master
27+
else
28+
echo "No changes to deploy"
29+
fi

0 commit comments

Comments
 (0)