From db2af26049f40f99d339011a0c6796e05bfba03a Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Sat, 27 Apr 2024 10:23:16 +0200 Subject: [PATCH] uh --- .github/workflows/deploy.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7084c77..668e654 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,9 +19,11 @@ jobs: uses: webfactory/ssh-agent@v0.9.0 with: ssh-private-key: ${{ secrets.DEPLOY_KEY }} + - name: Add the ssh key to known_keys + run: ssh-keyscan cyber@mymc-link > /home/runner/.ssh/known_keys - name: Stop the realms server for the deployment - run: ssh -o StrictHostKeyChecking=no cyber@my-mc.link "pm2 stop 0" + run: ssh cyber@my-mc.link "pm2 stop 0" - name: Deploy compiled binary and dll files to server - run: scp -o StrictHostKeyChecking=no -r MyMcRealms/bin/Release/net8.0/linux-arm64/publish/* cyber@my-mc.link:/home/cyber/MyMcRealms + run: scp -r MyMcRealms/bin/Release/net8.0/linux-arm64/publish/* cyber@my-mc.link:/home/cyber/MyMcRealms - name: Start the realms server again - run: ssh -o StrictHostKeyChecking=no -p cyber@my-mc.link "pm2 start 0" + run: ssh -p cyber@my-mc.link "pm2 start 0"