From 811eb147d4bdbaf0cbcb999ba7115c1424b8278e Mon Sep 17 00:00:00 2001 From: Samuel Fernandez <79737178+polypixeldev@users.noreply.github.com> Date: Sun, 21 Jan 2024 12:37:01 -0500 Subject: [PATCH] More fixing of the deploy workflow --- .github/workflows/workflow.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index bc63474..aad19f6 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -123,6 +123,10 @@ jobs: run: | echo "$SSH_PRIVATE_KEY" > .ssh_private_key chmod 700 .ssh_private_key + mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts + ssh-keyscan mc-admin.hackclub.com >> ~/.ssh/known_hosts + eval $(ssh-agent) + ssh-add - <<< "$SSH_PRIVATE_KEY" scp -i .ssh_private_key HCCore-Shadow-*.jar github-deploy@mc-admin.hackclub.com:/opt/minecraft/plugins/update rm .ssh_private_key