fix workflow

This commit is contained in:
jheaps
2025-10-08 15:27:28 -06:00
parent 624bcfaa11
commit 108f072090
+10 -1
View File
@@ -39,7 +39,16 @@ jobs:
path: publish
- name: Prepare SSH
run: |
install -m 700 -d ~/.ssh
if [ -z "${{ secrets.MEDIA_SSH_KEY }}" ]; then
echo "Error: MEDIA_SSH_KEY secret is not set"
exit 1
fi
if [ -z "${{ secrets.SSH_HOST }}" ]; then
echo "Error: SSH_HOST secret is not set"
exit 1
fi
mkdir -p ~/.ssh
chmod 700 ~/.ssh
echo "${{ secrets.MEDIA_SSH_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -p "${{ secrets.SSH_PORT || 22 }}" "${{ secrets.SSH_HOST }}" >> ~/.ssh/known_hosts