main
Evan Hemsley 2019-09-15 12:16:59 -07:00
parent ccabeca238
commit a6c67b0b64
1 changed files with 2 additions and 3 deletions

View File

@ -16,8 +16,7 @@ jobs:
command: | command: |
if [ "${CIRCLE_BRANCH}" = "master" ]; then if [ "${CIRCLE_BRANCH}" = "master" ]; then
echo -e "Starting to deploy to Github Pages\n" echo -e "Starting to deploy to Github Pages\n"
mkdir ~/repo cd ~/project
cd ~/repo
git config --global user.email "builds@circleci.com" git config --global user.email "builds@circleci.com"
git config --global user.name "CircleCI" git config --global user.name "CircleCI"
#using token clone gh-pages branch #using token clone gh-pages branch
@ -25,7 +24,7 @@ jobs:
#go into directory and copy data we're interested in to that directory #go into directory and copy data we're interested in to that directory
cd built_website cd built_website
echo "rsync built code with checked out code..." echo "rsync built code with checked out code..."
rsync -r --exclude=.git --delete ~/project/build ~/repo rsync -r --exclude=.git --delete ~/project/public ./
#add, commit and push files #add, commit and push files
echo "add files to git..." echo "add files to git..."
git add -f . git add -f .