Skip to content

Commit 811eb14

Browse files
authored
More fixing of the deploy workflow
1 parent dccfd2a commit 811eb14

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/workflow.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ jobs:
123123
run: |
124124
echo "$SSH_PRIVATE_KEY" > .ssh_private_key
125125
chmod 700 .ssh_private_key
126+
mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts
127+
ssh-keyscan mc-admin.hackclub.com >> ~/.ssh/known_hosts
128+
eval $(ssh-agent)
129+
ssh-add - <<< "$SSH_PRIVATE_KEY"
126130
scp -i .ssh_private_key HCCore-Shadow-*.jar [email protected]:/opt/minecraft/plugins/update
127131
rm .ssh_private_key
128132

0 commit comments

Comments
 (0)