From b4a227ae82d6c923107e865a851e7e47e64b31ca Mon Sep 17 00:00:00 2001 From: vikas Date: Tue, 4 Mar 2025 18:25:07 +0530 Subject: [PATCH] Added CI-CD pipeline --- .github/workflows/vercel.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/vercel.yml diff --git a/.github/workflows/vercel.yml b/.github/workflows/vercel.yml new file mode 100644 index 0000000..1204d97 --- /dev/null +++ b/.github/workflows/vercel.yml @@ -0,0 +1,25 @@ +name: Deploy to Vercel + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Install Dependencies + run: npm install + + - name: Build Project + run: npm run build + + - name: Deploy to Vercel + run: npx vercel --prod --token=${{ secrets.VERCEL_TOKEN }}