diff --git a/.travis.yml b/.travis.yml index 610aa26..fe0e6d4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,10 +8,11 @@ branches: only: - master - "/master-(.*)/" -before_install: +before_deploy: - openssl aes-256-cbc -K $encrypted_550be8be9cea_key -iv $encrypted_550be8be9cea_iv -in keypair.pem.enc -out keypair.pem -d deploy: + skip_cleanup: true provider: script script: scripts/deploy on: diff --git a/keypair.pem.enc b/keypair.pem.enc index b24d3e6..f3e407d 100644 Binary files a/keypair.pem.enc and b/keypair.pem.enc differ diff --git a/scripts/deploy b/scripts/deploy index 289ab20..062dcd7 100755 --- a/scripts/deploy +++ b/scripts/deploy @@ -2,4 +2,8 @@ ./scripts/build -rsync -avr --rsh="ssh -i keypair.pem" --delete-after --delete-excluded _site/ travis_ftp@jaysinh.com:/home/travis_ftp/html/blog/ +chmod 600 ./keypair.pem + +rsync -avr --rsh="ssh -i keypair.pem -o StrictHostKeyChecking=no" --delete-after --delete-excluded _site/ travis_ftp@jaysinh.com:/home/travis_ftp/html/blog/ + +rm ./keypair.pem