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