Update entrypoint.sh

This commit is contained in:
James Ives 2019-03-03 15:57:51 -05:00
parent f4dde9ad17
commit b70dd2b2ec

View File

@ -17,6 +17,10 @@ then
exit 1
fi
if [[ "$FOLDER" == "/" ]]; then
FOLDER=":/"
fi
## Initializes Variables
REPOSITORY_PATH="https://${ACCESS_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" && \
@ -40,5 +44,6 @@ eval "$BUILD_SCRIPT"
# Commits the data to Github.
git add -f $FOLDER && \
git commit -m "Deploying to ${FOLDER} - $(date +"%T")" && \
git push $REPOSITORY_PATH `git subtree split --prefix $FOLDER master`:$BRANCH --force
git push $REPOSITORY_PATH `git subtree split --prefix $FOLDER master`:$BRANCH --force && \
echo "Deployment Succesful!"