fix: use printf to preserve SSH key newlines in deploy workflow

echo strips trailing newlines from multiline secrets, breaking PEM format.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
emil
2026-05-09 14:10:23 +03:00
co-authored by Claude Sonnet 4.6
parent c1badc3eec
commit ff40720df2
+1 -1
View File
@@ -21,7 +21,7 @@ jobs:
- name: Setup SSH key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/deploy_key
printf '%s\n' "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/deploy_key
chmod 600 ~/.ssh/deploy_key
ssh-keyscan -H ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts