Skip to content

Commit 6f698ad

Browse files
committed
Use scp instead of rsync
rsync may not be available
1 parent 38ae7c4 commit 6f698ad

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/ds-docs-deploy-production.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@ jobs:
4343
mkdir -p ~/.ssh
4444
echo "sftp.wp.com ssh-ed25519 $SSH_HOST_PUBLIC_KEY" > ~/.ssh/known_hosts
4545
46-
rsync -avz -e "ssh -i key.pem -o UserKnownHostsFile=~/.ssh/known_hosts -o StrictHostKeyChecking=yes" \
47-
apps/design-system-docs/dist/ \
48-
"$SSH_USER@sftp.wp.com:~/htdocs/"
46+
# Copy the built site to the production server
47+
scp -r -i key.pem \
48+
-o UserKnownHostsFile=~/.ssh/known_hosts \
49+
-o StrictHostKeyChecking=yes \
50+
apps/design-system-docs/dist/* \
51+
"$SSH_USER@sftp.wp.com:/srv/htdocs/"
4952
5053
rm key.pem

0 commit comments

Comments
 (0)