This commit is contained in:
@@ -17,17 +17,16 @@ jobs:
|
||||
- name: Build
|
||||
run: hugo --minify
|
||||
|
||||
- name: Verify secret presence
|
||||
- name: Debug key file
|
||||
run: |
|
||||
[ -n "$SSH_KEY" ] && echo "SSH_KEY is non-empty" || echo "SSH_KEY missing"
|
||||
[ -n "$SSH_USER" ] && echo "SSH_USER is non-empty" || echo "SSH_USER missing"
|
||||
[ -n "$SSH_HOST" ] && echo "SSH_HOST is non-empty" || echo "SSH_HOST missing"
|
||||
[ -n "$DEPLOY_PATH" ] && echo "DEPLOY_PATH is non-empty" || echo "DEPLOY_PATH missing"
|
||||
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 }}
|
||||
SSH_USER: ${{ secrets.SSH_USER }}
|
||||
SSH_HOST: ${{ secrets.SSH_HOST }}
|
||||
DEPLOY_PATH: ${{ secrets.DEPLOY_PATH }}
|
||||
|
||||
- name: Deploy
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user