From daac942fb59016b07bf89516f754e3023177e2e6 Mon Sep 17 00:00:00 2001 From: Yasuhiro Yamada Date: Tue, 2 Jan 2024 02:44:27 +0000 Subject: [PATCH] Fix --exclude 2 --- .github/workflows/build-and-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 5d04707..81ca584 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -17,5 +17,5 @@ jobs: run: | printf '%s' "$KEY" > id_rsa chmod 400 id_rsa - rsync --exclude '.git' --delete -av -e "ssh -p $PORT -i id_rsa -o StrictHostKeyChecking=no" --rsync-path 'sudo rsync' --port=$PORT ./ $USERNAME@$HOST:/var/www/html/lottie-color-edit + rsync --exclude '.git*' --exclude 'id_rsa' --delete -av -e "ssh -p $PORT -i id_rsa -o StrictHostKeyChecking=no" --rsync-path 'sudo rsync' --port=$PORT ./ $USERNAME@$HOST:/var/www/html/lottie-color-edit rm -f id_rsa