From 5a372715e36f35c3b0d37b511d033a6659625c9e Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Sat, 20 Apr 2024 22:50:38 +0200 Subject: [PATCH] lmao I don't know how to add a ssh key --- .gitea/workflows/deploy.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index a20ac0f..0e19995 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -15,5 +15,9 @@ jobs: ./dotnet-install.sh - name: Compile MyMcRealms run: /root/.dotnet/dotnet publish --runtime linux-arm64 + - name: Install sshpass + run: | + apt-get update + apt-get install sshpass - name: Deploy compiled binary and dll files to server - run: scp -r -P 9476 MyMcRealms\bin\Release\net8.0\linux-arm64\publish\* root@ssh.surf:/root/MyMcRealms + run: sshpass -p '${{ secrets.VPS_PASSWORD }}' scp -r -P 9476 MyMcRealms\bin\Release\net8.0\linux-arm64\publish\* root@ssh.surf:/root/MyMcRealms