Developer Tools
GitHub Actions Generator
Create GitHub Actions workflows with an easy wizard
Workflow Configuration
Answer a few questions to generate your workflow
Next Steps:
- Copy or download the generated workflow
- Create .github/workflows directory in your repository
- Save the workflow as deploy.yml
- Configure required secrets in GitHub Settings
- Push to trigger the workflow
Generated Workflow
name: Deploy to Vercel
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Deploy to Vercel
uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}