Update pages.yml

This commit is contained in:
Waylon Walker 2020-03-09 21:59:31 -05:00 committed by GitHub
parent ba2eef71c6
commit c6bd1cef1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,10 +23,14 @@ jobs:
mkdir /tmp/github-pages mkdir /tmp/github-pages
cd /tmp/github-pages cd /tmp/github-pages
if $keep_history && $REMOTE_BRANCH_EXISTS if $keep_history && [ $REMOTE_BRANCH_EXISTS -ne 0 ]
then then
echo remote exists
echo clone repo
git clone --quiet --branch ${target_branch} --depth 1 ${REMOTE} . git clone --quiet --branch ${target_branch} --depth 1 ${REMOTE} .
else else
echo remote does not exist
echo initialize repo
git init . git init .
git checkout --orphan gh-pages git checkout --orphan gh-pages
fi fi
@ -41,7 +45,7 @@ jobs:
else else
echo echo
echo log before commit echo log before commit
git log -1 HEAD --pretty=format:%s git log
git config user.name ${COMMITER_NAME} git config user.name ${COMMITER_NAME}
git config user.email ${COMMITER_EMAIL} git config user.email ${COMMITER_EMAIL}
git status --porcelain git status --porcelain
@ -49,7 +53,7 @@ jobs:
git commit -m "DIST to ${target_branch}" git commit -m "DIST to ${target_branch}"
echo echo
echo log after commit echo log after commit
git log -1 HEAD --pretty=format:%s git log
echo 🏃 Deploying ${build_dir} directory to ${target_branch} branch on ${repo} repo echo 🏃 Deploying ${build_dir} directory to ${target_branch} branch on ${repo} repo