Check for actual additions

This commit is contained in:
Greg Hale 2016-08-04 01:16:38 -04:00
parent 21d5f77976
commit 38af0a3064
2 changed files with 7 additions and 4 deletions

View File

@ -46,9 +46,6 @@ cache:
- $HOME/.cabal/packages
- $HOME/.cabal/store
os:
- linux
env:
global:
- ENCRYPTION_LABEL: "3c89d919c82e"

View File

@ -30,7 +30,7 @@ git checkout $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH
cd ..
# Clean out existing contents
rm -rf $OUT/* || exit 0
# rm -rf $OUT/* || exit 0
# Run our compile script
doCompile
@ -40,6 +40,12 @@ cd $OUT
git config user.name "Travis CI"
git config user.email "$COMMIT_AUTHOR_EMAIL"
# If there are no changes to the compiled out (e.g. this is a README update) then just bail.
if [ -z `git diff --exit-code` ]; 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