blargh
parent
ccabeca238
commit
a6c67b0b64
|
@ -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 .
|
||||
|
|
Loading…
Reference in New Issue