Tulz.net
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:

  1. Copy or download the generated workflow
  2. Create .github/workflows directory in your repository
  3. Save the workflow as deploy.yml
  4. Configure required secrets in GitHub Settings
  5. 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 }}