diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 1505557..06c41f5 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -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: |