From 032dc6e80fc9464f4ef7b6c3e896e5f8d6e3eb16 Mon Sep 17 00:00:00 2001 From: Youn-Rha <86452280+Youn-Rha@users.noreply.github.com> Date: Sat, 16 Nov 2024 08:46:25 +0900 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7fbf02f..c44f299 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,7 +44,7 @@ jobs: SERVER_IP: ${{ secrets.HOST }} run: | # 서버에 /var/www/html/dist 디렉터리가 없으면 생성 - sshpass -p "$SSH_PASSWORD" ssh -o StrictHostKeyChecking=no -p 16122 rayoen@$SERVER_IP "mkdir -p /var/www/html/dist" - sshpass -p "$SSH_PASSWORD" scp -o StrictHostKeyChecking=no -P 16122 -r dist/* rayoen@$SERVER_IP:/var/www/html/dist/ - sshpass -p "$SSH_PASSWORD" ssh -o StrictHostKeyChecking=no -p 16122 rayoen@$SERVER_IP "chmod -R 755 /var/www/html/dist" - sshpass -p "$SSH_PASSWORD" ssh -o StrictHostKeyChecking=no -p 16122 rayoen@$SERVER_IP "sudo systemctl restart nginx" + sshpass -p "$PASSWORD" ssh -o StrictHostKeyChecking=no -p 16122 rayoen@$HOST "mkdir -p /var/www/html/dist" + sshpass -p "$PASSWORD" scp -o StrictHostKeyChecking=no -P 16122 -r dist/* rayoen@$HOST:/var/www/html/dist/ + sshpass -p "$PASSWORD" ssh -o StrictHostKeyChecking=no -p 16122 rayoen@$HOST "chmod -R 755 /var/www/html/dist" + sshpass -p "$PASSWORD" ssh -o StrictHostKeyChecking=no -p 16122 rayoen@$HOST "sudo systemctl restart nginx"