diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 879bb7b..416cd31 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -24,6 +24,15 @@ jobs: - name: Build Site run: hugo --minify + - name: Test SSH Connection + run: | + mkdir -p ~/.ssh + echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 + # Add verbose output and show the SSH version + ssh -V + ssh -vvv -o StrictHostKeyChecking=no john@192.168.1.177 'echo "Connection successful"' + - name: Deploy to Server uses: appleboy/scp-action@v0.1.7 with: