This commit is contained in:
Ivan Malison 2016-12-28 04:42:42 -08:00
parent 98ff3fde33
commit 8a3ac3c73b
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8
2 changed files with 3 additions and 8 deletions

View File

@ -5,3 +5,4 @@ env:
global: global:
- ENCRYPTION_LABEL: "73e6c870aa87" - ENCRYPTION_LABEL: "73e6c870aa87"
- COMMIT_AUTHOR_EMAIL: "IvanMalison@gmail.com" - COMMIT_AUTHOR_EMAIL: "IvanMalison@gmail.com"
- COMMIT_AUTHOR_NAME: "Ivan Malison"

View File

@ -44,15 +44,9 @@ cd out
git config user.name "$COMMIT_AUTHOR_NAME" git config user.name "$COMMIT_AUTHOR_NAME"
git config user.email "$COMMIT_AUTHOR_EMAIL" 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. # Commit the "changes", i.e. the new version.
# The delta will show diffs between new and old versions. # The delta will show diffs between new and old versions.
git add . git add --all .
git commit -m "Deploy to GitHub Pages: ${SHA}" git commit -m "Deploy to GitHub Pages: ${SHA}"
# Get the deploy key by using Travis's stored variables to decrypt deploy_key.enc # 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` eval `ssh-agent -s`
ssh-add deploy_key ssh-add deploy_key
git push $SSH_REPO $TARGET_BRANCH git push "$SSH_REPO" "$TARGET_BRANCH"