Skip to content

Create vercel-deploy.yml #1

Create vercel-deploy.yml

Create vercel-deploy.yml #1

Workflow file for this run

name: Deploy to Vercel
on:
push:
branches:
- main # Adjust the branch as needed
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v3
# Set up Node.js environment
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
# Install dependencies
- name: Install dependencies
run: npm install
# Build the project
- name: Build the project
run: npm run build
# Deploy to Vercel
- name: Deploy to Vercel
run: npx vercel --prod --token=$VERCEL_DEPLOYMENT_TOKEN