update deploy
All checks were successful
Build Hugo Site / build (push) Successful in 5s

This commit is contained in:
2025-11-10 02:27:38 -03:00
parent 949549d1b9
commit 59b0d11dd2

View File

@@ -17,24 +17,15 @@ jobs:
- name: Build
run: hugo --minify
- name: Debug key file
run: |
echo "Checking ~/.ssh:"
ls -lah ~/.ssh
echo "File content (first few lines):"
head -n 5 ~/.ssh/id_ed25519 || echo "file missing"
echo "File permissions:"
stat ~/.ssh/id_ed25519 || echo "no stat"
env:
SSH_KEY: ${{ secrets.SSH_KEY }}
- name: Deploy
run: |
apk add --no-cache rsync openssh
mkdir -p ~/.ssh
echo "$SSH_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
rsync -avz --delete -e "ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no" public/ ${SSH_USER}@${SSH_HOST}:${DEPLOY_PATH}
mkdir -p /root/.ssh
echo "$SSH_KEY" > /root/.ssh/id_ed25519
chmod 600 /root/.ssh/id_ed25519
rsync -avz --delete \
-e "ssh -i /root/.ssh/id_ed25519 -o StrictHostKeyChecking=no" \
public/ ${SSH_USER}@${SSH_HOST}:${DEPLOY_PATH}
env:
SSH_KEY: ${{ secrets.SSH_KEY }}
SSH_USER: ${{ secrets.SSH_USER }}