From 0094c660b269f0b57fb572dd1d3827f7d10613b4 Mon Sep 17 00:00:00 2001 From: James Ives Date: Sun, 3 Mar 2019 10:05:36 -0500 Subject: [PATCH] Adding BUILD_SCRIPT --- entrypoint.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 630010d4..d13adde9 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,13 +1,13 @@ #!/bin/sh -l if [ -z "$BRANCH" ] then - echo "Which branch should this push to?" + echo "You must provide the action with a branch name." exit 1 fi if [ -z "$FOLDER" ] then - echo "Which folder should this push to?" + echo "You must provide the action with the folder name in the repository where your compiled page lives." fi # Installs Git. @@ -21,11 +21,10 @@ cd $GITHUB_WORKSPACE && \ git config --global user.email "${COMMIT_EMAIL:-gh-pages-deploy@jives.dev}" && \ git config --global user.name "${COMMIT_NAME:-Github Pages Deploy}" && \ git checkout master && \ -git push $GITHUB_REPOSITORY $BRANCH:$BRANCH +git push $GITHUB_REPOSITORY $BRANCH:$BRANCH && \ # Builds the project. -npm install && \ -npm run-script build && \ +$BUILD_SCRIPT && \ # Commits the data to Github. git add -f $FOLDER &&