Loading video player...
I let Claude Code write a complete GitHub Actions workflow that auto-deploys my Hostinger VPS every time I push to main. From `git push` to live in 42 seconds. No SSH. No manual restarts. One prompt did the entire setup. In this tutorial: ✅ Generate an SSH deploy key for GitHub Actions ✅ Tell Claude Code to write the workflow YAML ✅ Add the 3 GitHub secrets ✅ Push code → watch the deploy run live ✅ Verify on the VPS with PM2 logs ⏱️ TIMESTAMPS 0:00 The wow shot — push to deploy in 42 seconds 0:15 Why manual deploys are painful 0:45 The full pipeline diagram 1:15 Prerequisites (5-min VPS setup video linked below) 1:45 Claude Code writes the entire workflow file 3:30 Add the 3 GitHub Secrets 4:30 Live test — push, deploy, verify 5:30 Sanity check on the VPS (PM2 logs) 6:15 What to extend next 6:45 Closing 🔗 LINKS Hostinger VPS (affiliate, 20% off): https://www.hostinger.com/ayyaztech My 5-Minute Hostinger VPS Setup video: https://youtu.be/AX9Wp_YxTpU Deploy Next.js to Hostinger video: https://youtu.be/8xwFqyVj9ms appleboy/ssh-action: https://github.com/appleboy/ssh-action Full deploy.yml gist: [link to GitHub gist with the workflow] 💻 SETUP COMMANDS (FROM THE VIDEO) # Generate the GitHub Actions deploy key (one per project) ssh-keygen -t ed25519 -f ~/.ssh/hostinger_deploy_key_taskapi -C "github-actions-deploy-taskapi" -N "" ssh-copy-id -i ~/.ssh/hostinger_deploy_key_taskapi.pub root@YOUR_VPS_IP ssh -i ~/.ssh/hostinger_deploy_key_taskapi root@YOUR_VPS_IP "whoami" # Copy the private key to clipboard for the GitHub Secret cat ~/.ssh/hostinger_deploy_key_taskapi | pbcopy 🔐 GITHUB SECRETS TO ADD - VPS_HOST → your VPS IP - VPS_USER → root - SSH_PRIVATE_KEY → full contents of the private key file (including BEGIN/END lines) 🚀 SUBSCRIBE for more Claude Code automation tutorials 👍 LIKE if you'll actually use this on your next project 💬 COMMENT — which extension do you want next: SSL with Certbot, custom domain, staging environment, or Slack notifications? #claudecode #githubactions #hostinger #devops #autodeploy