1d7b5faefa
Deploy to Vercel / deploy (push) Failing after 1m0s
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Deploy to Vercel
|
|
|
|
# Jab bhi 'revamp' branch pe push hoga, yeh automatically Vercel pe deploy kar dega
|
|
on:
|
|
push:
|
|
branches:
|
|
- revamp
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
# Org aur Project ID secret nahi hain — yahin rakh diye taaki sirf VERCEL_TOKEN secret add karna pade
|
|
env:
|
|
VERCEL_ORG_ID: team_uSdJB1WvSXC3ilPP28AAsJ1z
|
|
VERCEL_PROJECT_ID: prj_frXDAngP1brs10g3lUsMa0xCBB9X
|
|
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
|
|
- name: Enable pnpm
|
|
run: corepack enable
|
|
|
|
- name: Install Vercel CLI
|
|
run: npm install -g vercel@latest
|
|
|
|
- name: Pull Vercel project settings
|
|
run: vercel pull --yes --environment=production --token="$VERCEL_TOKEN"
|
|
|
|
- name: Build project
|
|
run: vercel build --prod --token="$VERCEL_TOKEN"
|
|
|
|
- name: Deploy to production
|
|
run: vercel deploy --prebuilt --prod --token="$VERCEL_TOKEN"
|