ci: add Gitea Actions workflow for auto-deploy to Vercel
Deploy to Vercel / deploy (push) Failing after 1m0s

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Goutam0612
2026-06-25 01:13:03 +05:30
parent 4da2bdf168
commit 1d7b5faefa
+39
View File
@@ -0,0 +1,39 @@
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"