diff --git a/build/entrypoint.sh b/build/entrypoint.sh index 167dc7e..c7387b7 100755 --- a/build/entrypoint.sh +++ b/build/entrypoint.sh @@ -1,6 +1,9 @@ #!/bin/sh + +set -e + echo '👍 ENTRYPOINT HAS STARTED—INSTALLING THE GEM BUNDLE' -bundle install > /dev/null 2>&1 +bundle install bundle list | grep "jekyll (" echo '👍 BUNDLE INSTALLED—BUILDING THE SITE' bundle exec jekyll build diff --git a/deploy/entrypoint.sh b/deploy/entrypoint.sh index 64422c4..ce18c8e 100755 --- a/deploy/entrypoint.sh +++ b/deploy/entrypoint.sh @@ -1,14 +1,17 @@ #!/bin/sh + +set -e + cd build -remote_repo="https://${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" && \ -remote_branch="gh-pages" && \ -git init && \ -git config user.name "${GITHUB_ACTOR}" && \ -git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" && \ -git add . && \ -echo -n 'Files to Commit:' && ls -l | wc -l && \ -git commit -m'action build' > /dev/null 2>&1 && \ -git push --force $remote_repo master:$remote_branch > /dev/null 2>&1 && \ -rm -fr .git && \ +remote_repo="https://${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" +remote_branch="gh-pages" +git init +git config user.name "${GITHUB_ACTOR}" +git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" +git add . +echo -n 'Files to Commit:' && ls -l | wc -l +git commit -m'action build' > /dev/null +git push --force $remote_repo master:$remote_branch > /dev/null +rm -fr .git cd ../ echo '👍 GREAT SUCCESS!' diff --git a/entrypoint.sh b/entrypoint.sh index c54b598..4dee8b3 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -9,15 +9,15 @@ echo '👍 BUNDLE INSTALLED—BUILDING THE SITE' bundle exec jekyll build echo '👍 THE SITE IS BUILT—PUSHING IT BACK TO GITHUB-PAGES' cd build -remote_repo="https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" && \ -remote_branch="gh-pages" && \ -git init && \ -git config user.name "${GITHUB_ACTOR}" && \ -git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" && \ -git add . && \ -echo -n 'Files to Commit:' && ls -l | wc -l && \ -git commit -m'action build' > /dev/null 2>&1 && \ -git push --force $remote_repo master:$remote_branch > /dev/null 2>&1 && \ -rm -fr .git && \ +remote_repo="https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" +remote_branch="gh-pages" +git init +git config user.name "${GITHUB_ACTOR}" +git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" +git add . +echo -n 'Files to Commit:' && ls -l | wc -l +git commit -m'action build' > /dev/null +git push --force $remote_repo master:$remote_branch > /dev/null +rm -fr .git cd ../ echo '👍 GREAT SUCCESS!'