From 1d7b5faefa2702e85e0523c265a7cb615c6e4ce4 Mon Sep 17 00:00:00 2001 From: Goutam0612 Date: Thu, 25 Jun 2026 01:13:03 +0530 Subject: [PATCH] ci: add Gitea Actions workflow for auto-deploy to Vercel Co-Authored-By: Claude Opus 4.8 (1M context) --- .gitea/workflows/deploy.yml | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..9572d35 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -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"