From e8a57d7353f8044b2ecb3864a55ff06c630aa246 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Thu, 10 Apr 2025 17:17:42 +0100 Subject: [PATCH] Remove commented code block --- .github/workflows/deploy.yaml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 69b461e..c5ccde6 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -34,11 +34,6 @@ jobs: cd server CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o executable - # - name: Setup SSH - # uses: webfactory/ssh-agent@v0.5.3 - # with: - # ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }} - - name: Deploy to VPS env: HOST: hazemkrimi.tech @@ -52,7 +47,5 @@ jobs: echo " StrictHostKeyChecking no" >> ~/.ssh/config echo " UserKnownHostsFile /dev/null" >> ~/.ssh/config - ssh-keyscan -H $HOST > ~/.ssh/known_hosts - - scp -r client/build $USER@$HOST:/var/www/touch-programming.hazemkrimi.tech/public - scp server/executable $USER@$HOST:/var/www/touch-programming.hazemkrimi.tech/api + scp -i ~/.ssh/id_deploy -r client/build $USER@$HOST:/var/www/touch-programming.hazemkrimi.tech/public + scp -i ~/.ssh/id_deploy server/executable $USER@$HOST:/var/www/touch-programming.hazemkrimi.tech/api