Instantly share code, notes, and snippets.

Embed
What would you like to do?
version: 2.0
jobs:
build:
machine:
image: circleci/classic:latest
branches:
only:
- master
steps:
- run:
name: Install LFTP
command: |
sudo apt-get update;
sudo apt-get install lftp;
- checkout
- run:
name: Send Via SFTP
command: lftp sftp://${username}:${password}@${hostname} -e "mirror -v -R --exclude .git/ --exclude .circleci/ ./ ${site_name}/wp-content/themes/${theme}; quit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment