From 8a3ac3c73b4c716235fd86fabafc76609cd8986c Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 28 Dec 2016 04:42:42 -0800 Subject: [PATCH] Meh2 --- .travis.yml | 1 + bin/deploy.sh | 10 ++-------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 236399d3..7ad91550 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,3 +5,4 @@ env: global: - ENCRYPTION_LABEL: "73e6c870aa87" - COMMIT_AUTHOR_EMAIL: "IvanMalison@gmail.com" + - COMMIT_AUTHOR_NAME: "Ivan Malison" diff --git a/bin/deploy.sh b/bin/deploy.sh index 5d3fcaa2..9ae9abc7 100755 --- a/bin/deploy.sh +++ b/bin/deploy.sh @@ -44,15 +44,9 @@ cd out git config user.name "$COMMIT_AUTHOR_NAME" 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 . +git add --all . git commit -m "Deploy to GitHub Pages: ${SHA}" # Get the deploy key by using Travis's stored variables to decrypt deploy_key.enc @@ -65,4 +59,4 @@ chmod 600 deploy_key eval `ssh-agent -s` ssh-add deploy_key -git push $SSH_REPO $TARGET_BRANCH +git push "$SSH_REPO" "$TARGET_BRANCH"