more circle tweaks

main
Evan Hemsley 2019-09-15 12:21:55 -07:00
parent a6c67b0b64
commit a21e77d34a
1 changed files with 3 additions and 1 deletions

View File

@ -11,8 +11,9 @@ jobs:
- checkout - checkout
- run: - run:
name: "Run Hugo" name: "Run Hugo"
command: HUGO_ENV=production hugo -v -s ~/project command: HUGO_ENV=production hugo -v
- deploy: - deploy:
name: "Deploy website"
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"
@ -25,6 +26,7 @@ jobs:
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/public ./ rsync -r --exclude=.git --delete ~/project/public ./
mv ./public ./bonk
#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 .