From 42241da1f581a219ec11fa69dfe71f65f25bfb37 Mon Sep 17 00:00:00 2001 From: Daxin Wang Date: Thu, 4 Jan 2024 15:59:49 +0800 Subject: [PATCH] ignore host key check Signed-off-by: Daxin Wang --- .github/workflows/deploy-production.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index d1ae1c0..3a229c3 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -36,7 +36,7 @@ jobs: cd public && tar -cvzf public.tar.gz * scp -o StrictHostKeyChecking=no public.tar.gz "$WEBSITE_HOST":$WEBSITE_PATH/.. # Update the website - ssh "$WEBSITE_HOST" << eof + ssh -o StrictHostKeyChecking=no "$WEBSITE_HOST" << eof echo "Removing the old files..." cd $WEBSITE_PATH && rm -rf * echo "Deploying the site..."