One-click GitHub Actions workflow for automatic Vercel deployments. Perfect for open source projects!
- ✅ External contributors push → Automatic Vercel deployment
- ✅ You push → No deployment (you control manually)
- ✅ Pure deployment → No build steps, just triggers Vercel
- ✅ Works with any project → Node.js, Python, Go, static sites, anything Vercel supports
- Go to Vercel Dashboard
- Your Project → Settings → Git → Deploy Hooks
- Create Hook → Copy the URL

- Your repo → Settings → Secrets and variables → Actions
- New repository secret:
- Name:
VERCEL_DEPLOY_HOOK
- Value: Your hook URL
- Name:
name: Auto Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy to Vercel
uses: Gourav2609/vercel-auto-deploy@v1
with:
exclude-authors: 'YOUR_GITHUB_USERNAME'
vercel-deploy-hook: ${{ secrets.VERCEL_DEPLOY_HOOK }}
Replace YOUR_GITHUB_USERNAME
with your GitHub username.
That's it! Now when anyone else pushes to main, it auto-deploys. When you push, it doesn't.
Want to exclude more users? Add them to the with:
section:
with:
exclude-authors: 'YOUR_USERNAME,github-actions[bot],dependabot[bot]' # Skip these users
vercel-deploy-hook: ${{ secrets.VERCEL_DEPLOY_HOOK }}
❌ "Input required and not supplied: vercel-deploy-hook"
- Check you added the secret with exact name
VERCEL_DEPLOY_HOOK
❌ "Build failed"
- This workflow only triggers deployment - if your Vercel build fails, check your Vercel dashboard
❌ "Deployment not triggered"
- Verify your username is in
exclude-authors
- Confirm push was to
main
branch
MIT License - see LICENSE file for details.
Made with ❤️ to make deployments easier