diff --git a/.github/workflows/wpcloud.yml b/.github/workflows/wpcloud.yml index 30149e41ba08b..975c22579203d 100644 --- a/.github/workflows/wpcloud.yml +++ b/.github/workflows/wpcloud.yml @@ -110,16 +110,24 @@ jobs: touch ~/.ssh/id_site touch ~/.ssh/known_hosts + touch ~/.ssh/config chmod 600 ~/.ssh/id_site chmod 600 ~/.ssh/known_hosts + chmod 600 ~/.ssh/config echo "$SSH_KEY" > ~/.ssh/id_site echo "wrote ~/.ssh/id_site" echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts echo "wrote ~/.ssh/known_hosts" + echo "Host jpwpcomsh" > ~/.ssh/config + echo " Hostname sftp.wp.com" >> ~/.ssh/config + echo " User wpcom-jetpackisbestpack-default-237778992" >> ~/.ssh/config + echo " IdentityFile ~/.ssh/id_jetpackisbestpack" >> ~/.ssh/config + echo " IdentitiesOnly yes" >> ~/.ssh/config echo "::endgroup::" echo "::group::Transferring wpcomsh to the testing server" + ssh -v jpwpcomsh "exit" pnpm jetpack rsync wpcomsh wpcom-jetpackisbestpack-default-237778992@sftp.wp.com:~/htdocs/wp-content/mu-plugins scp -r projects/plugins/wpcomsh/bin wpcom-jetpackisbestpack-default-237778992@sftp.wp.com:/srv/htdocs/wp-content/mu-plugins/wpcomsh scp -r projects/plugins/wpcomsh/tests wpcom-jetpackisbestpack-default-237778992@sftp.wp.com:/srv/htdocs/wp-content/mu-plugins/wpcomsh/