diff --git a/.circleci/config.yml b/.circleci/config.yml index 875290c..b6e5cdd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,8 +16,7 @@ jobs: command: | if [ "${CIRCLE_BRANCH}" = "master" ]; then echo -e "Starting to deploy to Github Pages\n" - mkdir ~/repo - cd ~/repo + cd ~/project git config --global user.email "builds@circleci.com" git config --global user.name "CircleCI" #using token clone gh-pages branch @@ -25,7 +24,7 @@ jobs: #go into directory and copy data we're interested in to that directory cd built_website 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 echo "add files to git..." git add -f .