Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (43 sloc) 1.1 KB
os: osx
language: ruby
rvm: 2.6.0
sudo: false
notifications:
email:
recipients:
- $EMAIL
on_success: always
on_failure: always
env:
global:
- JEKYLL_ENV=production
- DEPLOY_KEY=deploy_rsa
- LOCAL_FOLDER=_site
- JEKYLL_CONF=_config.yml
addons:
homebrew:
packages:
- rsync
before_install:
- gem update
install:
- bundle install
script:
- bundle exec jekyll build --config $JEKYLL_CONF
- bundle exec htmlproofer ./$LOCAL_FOLDER --check-favicon --check-html --http_status_ignore 999 --disable-external
- mv $LOCAL_FOLDER $REMOTE_FOLDER
before_deploy:
- ssh-keyscan -t rsa -H $HOST >> $HOME/.ssh/known_hosts
- openssl aes-256-cbc -K $encrypted_57051782bb65_key -iv $encrypted_57051782bb65_iv -in $DEPLOY_KEY.enc -out /tmp/$DEPLOY_KEY -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/$DEPLOY_KEY
- ssh-add /tmp/$DEPLOY_KEY
deploy:
provider: script
skip_cleanup: true
script: rsync --recursive --relative --delete-after --progress --stats $REMOTE_FOLDER $USERNAME@$HOST:$REMOTE_PATH
on:
branch: master
after_deploy:
- ssh-add -D /tmp/$DEPLOY_KEY
- rm /tmp/$DEPLOY_KEY
You can’t perform that action at this time.