From 572e4e71eaf11c14815b11fed1d514b108496c0c Mon Sep 17 00:00:00 2001 From: rasulov1337 <117843890+rasulov1337@users.noreply.github.com> Date: Fri, 20 Dec 2024 17:34:31 +0300 Subject: [PATCH] --- .github/workflows/nodejs-build.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/nodejs-build.yml b/.github/workflows/nodejs-build.yml index f15adb8..35f023c 100644 --- a/.github/workflows/nodejs-build.yml +++ b/.github/workflows/nodejs-build.yml @@ -37,16 +37,13 @@ jobs: - name: Install SSH Client run: sudo apt-get update && sudo apt-get install -y openssh-client - - name: chmod - uses: appleboy/ssh-action@master + - name: Add SSH key to the agent + uses: webfactory/ssh-agent@v0.9.0 with: - host: 37.139.41.110 - username: ubuntu - key: ${{ secrets.SSH_PRIVATE_KEY }} - script: ssh ubuntu@37.139.41.110 "mkdir -p /home/ubuntu/frontend/" + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - # - name: Create remote directory (if it doesn't exist) - # run: ssh ubuntu@37.139.41.110 "mkdir -p /home/ubuntu/frontend/" + - name: Create remote directory (if it doesn't exist) + run: ssh ubuntu@37.139.41.110 "mkdir -p /home/ubuntu/frontend/" - name: Copy build artifacts via SSH run: rsync -avzP ./dist/ ubuntu@37.139.41.110:/home/ubuntu/frontend/