Files
davila7__claude-code-templates/DEPLOYMENT.md
T
Dani 8788f4ea7a 🚀 Setup Automated Deployment - Main Branch to aitmpl.com
## GitHub Actions Workflow:
✅ Automatic deployment on push to main branch only
✅ Uses Vercel CLI for production builds
✅ Deploys to aitmpl.com custom domain
✅ Other branches require manual deployment

## Configuration Files:
-  - GitHub Actions workflow
-  - Setup instructions for secrets
-  - Vercel configuration with caching and security headers

## Required GitHub Secrets:
- VERCEL_TOKEN
- VERCEL_ORG_ID
- VERCEL_PROJECT_ID

## Deployment Flow:
🎯 Push to main → Auto-deploy to https://aitmpl.com
🔧 Other branches → Manual deployment only

Professional CI/CD pipeline for seamless production deployments.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-07 12:49:50 -04:00

1.5 KiB

🚀 Deployment Guide

This project is configured for automatic deployment to Vercel from the main branch.

GitHub Actions Setup

Required Secrets

Add these secrets to your GitHub repository settings:

  1. VERCEL_TOKEN: Your Vercel account token

    • Go to Vercel Account Settings
    • Create a new token with appropriate permissions
    • Add as VERCEL_TOKEN in GitHub Secrets
  2. VERCEL_ORG_ID: Your Vercel organization ID

    • Run vercel link in your project
    • Copy the orgId from .vercel/project.json
    • Add as VERCEL_ORG_ID in GitHub Secrets
  3. VERCEL_PROJECT_ID: Your Vercel project ID

    • Run vercel link in your project
    • Copy the projectId from .vercel/project.json
    • Add as VERCEL_PROJECT_ID in GitHub Secrets

Getting the IDs

Run these commands in your project root:

# Link to Vercel project
vercel link

# Get your IDs from the generated file
cat .vercel/project.json

Deployment Flow

  • ✅ Push to main → Automatic production deploy to aitmpl.com
  • ✅ Other branches → Manual deploy only (no auto-deploy)
  • ✅ Pull Requests → No deployment

Manual Deployment

For testing other branches:

# Deploy current branch to preview URL
vercel

# Deploy current branch to production
vercel --prod

Domain Configuration

The main branch deploys to the custom domain: aitmpl.com

Configured in Vercel dashboard under Project Settings → Domains.