forked from colonelpanic/dotfiles
Meh2
This commit is contained in:
parent
98ff3fde33
commit
8a3ac3c73b
@ -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"
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user