From cb37c6eaae5adcb0a3abd2e2a96dcd298ffb54c9 Mon Sep 17 00:00:00 2001 From: Piotr Chmielnik Date: Fri, 15 Mar 2024 13:03:02 +0100 Subject: [PATCH] Delete not existing files on server --- .github/workflows/publish_site.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_site.yml b/.github/workflows/publish_site.yml index f652c564c4..de7d2d3d7f 100644 --- a/.github/workflows/publish_site.yml +++ b/.github/workflows/publish_site.yml @@ -76,7 +76,7 @@ jobs: exit 1 fi echo "Start SFTP upload version: $WEBSITE_VERSION" - lftp -u ${{ secrets.SFTP_USERNAME }}, -e "set sftp:connect-program 'ssh -a -x -o StrictHostKeyChecking=no'; mkdir -p /var/www/${{ env.UPLOAD_DIR }}/html/$WEBSITE_VERSION; mirror --reverse --parallel=20 --verbose _site/ /var/www/${{ env.UPLOAD_DIR }}/html/$WEBSITE_VERSION/; quit" sftp://${{ secrets.SFTP_SERVER }} + lftp -u ${{ secrets.SFTP_USERNAME }}, -e "set sftp:connect-program 'ssh -a -x -o StrictHostKeyChecking=no'; mkdir -p /var/www/${{ env.UPLOAD_DIR }}/html/$WEBSITE_VERSION; mirror --reverse --delete --parallel=20 --verbose _site/ /var/www/${{ env.UPLOAD_DIR }}/html/$WEBSITE_VERSION/; quit" sftp://${{ secrets.SFTP_SERVER }} post_deploy: