mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Optional Build script
This commit is contained in:
parent
0094c660b2
commit
1df176a401
@ -23,8 +23,11 @@ git config --global user.name "${COMMIT_NAME:-Github Pages Deploy}" && \
|
||||
git checkout master && \
|
||||
git push $GITHUB_REPOSITORY $BRANCH:$BRANCH && \
|
||||
|
||||
# Builds the project.
|
||||
$BUILD_SCRIPT && \
|
||||
# Builds the project if applicable.
|
||||
if [ -z "$BUILD_SCRIPT" ]
|
||||
then
|
||||
$BUILD_SCRIPT && \
|
||||
fi
|
||||
|
||||
# Commits the data to Github.
|
||||
git add -f $FOLDER &&
|
||||
|
Loading…
Reference in New Issue
Block a user