Skip to content

Commit

Permalink
Only deploy to Vercel if backend changes (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
Advayp authored Jan 21, 2025
1 parent d12f86b commit 45a036d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/vercel-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ on:
push:
branches:
- main
paths:
- 'backend/**'
workflow_dispatch:

jobs:
Deploy-Production:
runs-on: ubuntu-latest
Expand All @@ -20,4 +22,4 @@ jobs:
- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

0 comments on commit 45a036d

Please sign in to comment.