mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Update entrypoint.sh
This commit is contained in:
parent
f4dde9ad17
commit
b70dd2b2ec
@ -17,6 +17,10 @@ then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$FOLDER" == "/" ]]; then
|
||||||
|
FOLDER=":/"
|
||||||
|
fi
|
||||||
|
|
||||||
## Initializes Variables
|
## Initializes Variables
|
||||||
REPOSITORY_PATH="https://${ACCESS_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" && \
|
REPOSITORY_PATH="https://${ACCESS_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" && \
|
||||||
|
|
||||||
@ -40,5 +44,6 @@ eval "$BUILD_SCRIPT"
|
|||||||
# Commits the data to Github.
|
# Commits the data to Github.
|
||||||
git add -f $FOLDER && \
|
git add -f $FOLDER && \
|
||||||
git commit -m "Deploying to ${FOLDER} - $(date +"%T")" && \
|
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!"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user