diff --git a/.github/workflows/publish_site.yml b/.github/workflows/publish_site.yml index 500e0f293a3..d4bea81a6ca 100644 --- a/.github/workflows/publish_site.yml +++ b/.github/workflows/publish_site.yml @@ -61,7 +61,7 @@ jobs: run: | sudo apt install lftp -y lftp --version - cp -r _site upload/${{ env.WEBSITE_VERSION }} + mkdir -p upload && cp -r _site/ upload/${{ env.WEBSITE_VERSION }} echo "Start SFTP upload" lftp -u ${{ secrets.SFTP_USERNAME }}, -e "set sftp:connect-program 'ssh -a -x -o StrictHostKeyChecking=no'; mirror --reverse --parallel=20 --verbose upload/ /var/www/${{ env.WEBSITE_URL }}/html/; quit" sftp://${{ secrets.SFTP_SERVER }}