From 97ccfbfb08646d9ca99315c3aeb15379fd1adda1 Mon Sep 17 00:00:00 2001 From: Sameer Shaik Date: Sat, 2 Nov 2024 11:40:40 +0530 Subject: [PATCH] add: github actions --- .github/workflows/deploy-client.yml | 8 ++++---- .github/workflows/deploy-server.yml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-client.yml b/.github/workflows/deploy-client.yml index 24e91a3..0df672a 100644 --- a/.github/workflows/deploy-client.yml +++ b/.github/workflows/deploy-client.yml @@ -1,9 +1,9 @@ -name: Deploy Client +name: Deploy Client Production on: push: paths: - - 'client/**' # Trigger only if files in the `client` directory change + - "client/**" jobs: deploy: @@ -15,8 +15,8 @@ jobs: - name: Deploy to Vercel env: - VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} # Add your Vercel token in GitHub secrets + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} run: | npm install -g vercel - cd client # Navigate to client directory + cd client vercel --prod --token $VERCEL_TOKEN diff --git a/.github/workflows/deploy-server.yml b/.github/workflows/deploy-server.yml index f8eabed..5e3035d 100644 --- a/.github/workflows/deploy-server.yml +++ b/.github/workflows/deploy-server.yml @@ -3,7 +3,7 @@ name: Deploy Server on: push: paths: - - 'server/**' # Trigger only if files in the `server` directory change + - "server/**" jobs: deploy: @@ -15,7 +15,7 @@ jobs: - name: Deploy to Vercel env: - VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} # Use your Vercel token here + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} # Use your Vercel token here run: | npm install -g vercel cd server # Navigate to server directory